websocket-sharp/Example1/TextMessage.cs
2016-07-31 17:02:25 +09:00

34 lines
512 B
C#

using Newtonsoft.Json;
using System;
namespace Example1
{
internal class TextMessage
{
[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);
}
}
}