public ChatViewModel(string uniqueHash, ChatDirectionType chatDirection, DateTime timestamp, string message) { this.UniqueHash = uniqueHash; this.ChatDirection = chatDirection; this.TimeStamp = timestamp; this.Message = message; }
public static string GetChatDirection(ChatDirectionType type) { string direction = "-"; if (type == ChatDirectionType.Client) { direction = "<="; } else if (type == ChatDirectionType.Server) { direction = "=>"; } return(direction); }
public ChatViewModel(ChatDirectionType chatDirection, DateTime timestamp, string message) { this.ChatDirection = chatDirection; this.TimeStamp = timestamp; this.Message = message; }