websocket-sharp/Example1/TextMessage.cs

34 lines
512 B
C#
Raw Normal View History

2016-07-31 16:02:25 +08:00
using Newtonsoft.Json;
2014-03-12 19:23:37 +08:00
using System;
namespace Example1
{
internal class TextMessage
{
2016-07-31 16:02:25 +08:00
[JsonProperty ("user_id")]
public uint? UserID {
get; set;
}
[JsonProperty ("name")]
public string Name {
get; set;
}
[JsonProperty ("type")]
public string Type {
get; set;
}
[JsonProperty ("message")]
public string Message {
get; set;
}
public override string ToString ()
{
return JsonConvert.SerializeObject (this);
}
2014-03-12 19:23:37 +08:00
}
}