[Modify] Polish it
parent
9775d93817
commit
df74f3d021
@ -1,12 +1,33 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Example1
|
namespace Example1
|
||||||
{
|
{
|
||||||
internal class TextMessage
|
internal class TextMessage
|
||||||
{
|
{
|
||||||
public uint? user_id;
|
[JsonProperty ("user_id")]
|
||||||
public string name;
|
public uint? UserID {
|
||||||
public string type;
|
get; set;
|
||||||
public string message;
|
}
|
||||||
|
|
||||||
|
[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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue