Files
stormchat/Interact/JsonObject.cs
T
2018-12-15 17:54:19 +08:00

43 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Interact
{
#region
//包头基本结构
public class BaseHead
{
//请求ID,由发送方定义的随机字符串。如果接受方有返回数据应包含相同的Token
public string Token;
//操作类型,决定数据的其他内容
public string Operation;
}
// 接受方返回的执行结果反馈包头,包含错误文本
public class ResultHead : BaseHead
{
//错误文本,为空则执行成功
public string Error;
}
#endregion
#region Json序列化与反序列化时使用的数据结构使
//登录信息包头
internal class JsonLogInfoHead : BaseHead
{
public string User;
public string Pwd;
}
//用户信息
internal class JsonUserInfo
{
public string User; //用户名
public string NickName; //昵称
public string Motto; //个性签名
public string UGroup; //用户组
}
#endregion
}