/// <summary> /// 初始化实例对象 /// </summary> /// <param name="userTicket"></param> public UserInfo(UserTicketInfo userTicket) : this(userTicket.UserID, userTicket.Accounts, userTicket.GameID, userTicket.LogonPass) { }
/// <summary> /// 反序列化Json对象 /// </summary> /// <param name="jsonText"></param> /// <returns></returns> public static UserTicketInfo DeserializeObject(string jsonText) { UserTicketInfo userTicket = JsonConvert.DeserializeObject <UserTicketInfo>(jsonText); return(userTicket); }