Skip to content

Instantly share code, notes, and snippets.

@FernandoZhuang
Created April 29, 2018 03:44
Show Gist options
  • Save FernandoZhuang/d1624692f9827c4a5ebf28000d3d05bb to your computer and use it in GitHub Desktop.
Save FernandoZhuang/d1624692f9827c4a5ebf28000d3d05bb to your computer and use it in GitHub Desktop.
Webchat: Conversation Model
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