diff --git a/ChatController/ChatController.csproj b/ChatController/ChatController.csproj index a6893d8..d253163 100644 --- a/ChatController/ChatController.csproj +++ b/ChatController/ChatController.csproj @@ -30,6 +30,9 @@ prompt 4 + + ownchat_favicon.ico + ..\libs\Newtonsoft.Json.dll @@ -104,5 +107,20 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ChatController/ChatKlassen/AktuellerKontakt.cs b/ChatController/ChatKlassen/AktuellerKontakt.cs index 2d6049d..d58cefd 100644 --- a/ChatController/ChatKlassen/AktuellerKontakt.cs +++ b/ChatController/ChatKlassen/AktuellerKontakt.cs @@ -16,8 +16,8 @@ namespace ChatController.ChatKlassen public DateTime TimeStamp { get; set; } public long GroupId { get; set; } public long? CustomerPersonOid { get; set; } - - + + public AktuellerKontakt(KontaktlistBuilder kontakt) { if(kontakt != null) { diff --git a/ChatController/ChatKlassen/KontaktMessageBuilder.cs b/ChatController/ChatKlassen/KontaktMessageBuilder.cs index c08e849..d516ab1 100644 --- a/ChatController/ChatKlassen/KontaktMessageBuilder.cs +++ b/ChatController/ChatKlassen/KontaktMessageBuilder.cs @@ -12,6 +12,9 @@ namespace ChatController.ChatKlassen { public class KontaktMessageBuilder { + + public string OriginalImage { get; private set; } + //Chat Ansicht public KontaktMessageBuilder(string username, string message, string sendtime, bool isme, DateTime convertedSendTimeString) { @@ -48,16 +51,16 @@ namespace ChatController.ChatKlassen _herunterladen = Visibility.Collapsed; _gifPictureVisibility = Visibility.Collapsed; } - + // IMage Ansicht - public KontaktMessageBuilder(string username, string message, string sendtime, bool isme, ImageSource image, DateTime convertedSendTimeString) + public KontaktMessageBuilder(string username, string message, string sendtime, bool isme, ImageSource image, DateTime convertedSendTimeString,string originalImage) { Username = username; UserMessage = message; SendTime = sendtime; ImageSources = image; ConvertetSendtimeString = convertedSendTimeString; - + OriginalImage = originalImage; // Dokpfad = if (isme) diff --git a/ChatController/ChatMainControl.xaml b/ChatController/ChatMainControl.xaml index 2fa5877..28588e6 100644 --- a/ChatController/ChatMainControl.xaml +++ b/ChatController/ChatMainControl.xaml @@ -37,7 +37,8 @@ - + + + / Style="{DynamicResource IconButtonStyle}" /--> - - - + + + - + - - - + + + + +