Die Akzentfarbe von den Chatgruppen vom Server wird berücksichtigt. Bilder sind im richtigen Seitenverhältnis skaliert. Ein Bild, das man gerade erst verschickt hat und das man öffnen will, bevor es auf dem Server angekommen ist, wird jetzt erst angezeigt, sobald es auf dem Server ist. Die Textbox für eine neue Nachricht wird nur angezeigt, wenn eine Gruppe ausgewählt ist und wenn man das Recht hat Nachrichten an diese Gruppe zu verschicken. Diverse Codeverbesserungen.
36 lines
2.1 KiB
C#
36 lines
2.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace ChatController.Utilities
|
|
{
|
|
public static class Constants
|
|
{
|
|
public static readonly List<string> ImageFileExtensions = new List<string> { ".JPG", ".JPE", ".BMP", ".GIF", ".PNG", ".JPEG" };
|
|
public static readonly List<string> DocumentFileExtension = new List<string> { ".TXT", ".PPT", ".XLS", ".DOC", ".PDF" };
|
|
|
|
public static readonly string TeamDefaultImagePath = "pack://application:,,,/ChatController;component/Ressourcen/team_default.png";
|
|
public static readonly string EmployeeDefaultImagePath = "pack://application:,,,/ChatController;component/Ressourcen/employee_default.png";
|
|
public static readonly string CustomerDefaultImagePath = "pack://application:,,,/ChatController;component/Ressourcen/client_default.png";
|
|
public static readonly string NormalGroupDefaultImagePath = "pack://application:,,,/ChatController;component/Ressourcen/mitarbeiter-team-avatar.png";
|
|
|
|
public static readonly string Token = "Token";
|
|
public static readonly string CustomerId = "CustomerID";
|
|
|
|
public static readonly string MaxUploadFileSizeUrl = "/api/ownchat/uploadmaxsize";
|
|
public static readonly string LoginWithChatCodeUrl = "/api/user/loginwithchatcode";
|
|
public static readonly string GetChatGroupsUrl = "/api/chat/groups";
|
|
public static readonly string LoadMessagesForGroupUrl = "/api/chat/messages?groupid=";
|
|
public static readonly string LoadOwnChatNewsUrl = "/api/ownchat/news/";
|
|
public static readonly string SendMessageUrl = "/api/chat/messages/send";
|
|
|
|
public static readonly string UrlPageParameter = "&page=";
|
|
|
|
public static readonly int NotificationTimeout = 1500;
|
|
|
|
public static readonly string ContentTypeKey = "content-type";
|
|
public static readonly string FormUrlEncodedContentTypeValue = "application/x-www-form-urlencoded";
|
|
public static readonly string MultipartContentTypeValue = "multipart/form-data";
|
|
|
|
public static readonly string TenantAndChatCodeFileName = "ownChat.txt";
|
|
}
|
|
}
|