diff options
Diffstat (limited to 'Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models')
| -rw-r--r-- | Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/ChatConversationMessage.cs | 17 | ||||
| -rw-r--r-- | Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/SessionUser.cs | 13 |
2 files changed, 30 insertions, 0 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/ChatConversationMessage.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/ChatConversationMessage.cs new file mode 100644 index 000000000..3c056a922 --- /dev/null +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/ChatConversationMessage.cs @@ -0,0 +1,17 @@ +using System.Text.Json.Serialization; + +namespace Tango.Portal.Chat.Web.Models +{ + public class ChatConversationMessage + { + public string ID { get; set; } = Guid.NewGuid().ToString(); + public string SessionID { get; set; } = string.Empty; + public DateTime Time { get; set; } + public string Email { get; set; } = string.Empty; + public string User { get; set; } = string.Empty; + public string Role { get; set; } = string.Empty; + public string Classification { get; set; } = string.Empty; + public string Message { get; set; } = string.Empty; + public string Provider { get; set; } = string.Empty; + } +} diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/SessionUser.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/SessionUser.cs new file mode 100644 index 000000000..a9ce649f0 --- /dev/null +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/SessionUser.cs @@ -0,0 +1,13 @@ +namespace Tango.Portal.Chat.Web.Models +{ + public class SessionUser + { + public bool IsAuthenticated { get; set; } + public String Name { get; set; } = String.Empty; + public bool IsTwineUser { get; set; } + public string Email { get; set; } = string.Empty; + public string Organization { get; set; } = string.Empty; + public string FullName { get; set; } = string.Empty; + public DateTime Expires { get; set; } + } +} |
