ChatEventDetails.cs 864 Bytes
Newer Older
1 2 3 4
using Newtonsoft.Json;

namespace StackExchangeChat
{
5
    public class ChatEventDetails
6 7
    {
        [JsonProperty(PropertyName = "event_type")]
8
        public ChatEventType ChatEventType { get; set; } 
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

        [JsonProperty(PropertyName = "time_stamp")]
        public int TimeStamp { get; set; }

        public string Content { get; set; }

        public int Id { get; set; }

        [JsonProperty(PropertyName = "user_id")]
        public int UserId { get; set; }

        [JsonProperty(PropertyName = "user_name")]
        public string UserName { get; set; }

        [JsonProperty(PropertyName = "room_id")]
        public int RoomId { get; set; }

        [JsonProperty(PropertyName = "room_name")]
        public string RoomName { get; set; }

        [JsonProperty(PropertyName = "message_id")]
        public int? MessageId { get; set; }
    }
}