示例#1
0
文件: UserInfo.cs 项目: bylu/baiyiWeb
 /// <summary>
 /// 初始化实例对象
 /// </summary>
 /// <param name="userTicket"></param>
 public UserInfo(UserTicketInfo userTicket)
     : this(userTicket.UserID, userTicket.Accounts, userTicket.GameID, userTicket.LogonPass)
 {
 }
示例#2
0
        /// <summary>
        /// 反序列化Json对象
        /// </summary>
        /// <param name="jsonText"></param>
        /// <returns></returns>
        public static UserTicketInfo DeserializeObject(string jsonText)
        {
            UserTicketInfo userTicket = JsonConvert.DeserializeObject <UserTicketInfo>(jsonText);

            return(userTicket);
        }