Created
April 29, 2018 03:44
-
-
Save FernandoZhuang/d1624692f9827c4a5ebf28000d3d05bb to your computer and use it in GitHub Desktop.
Webchat: Conversation Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace ChildChat.Models | |
{ | |
public class Conversation | |
{ | |
public Conversation() | |
{ | |
status = messageStatus.Sent; | |
} | |
public enum messageStatus | |
{ | |
Sent, | |
Delivered | |
} | |
public int id { get; set; } | |
public int sender_id { get; set; } | |
public int receiver_id { get; set; } | |
public string message { get; set; } | |
public messageStatus status { get; set; } | |
public DateTime created_at { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment