public override string Serialize() { var bar = new PersonalSerialize { user = this.User, instance = this.Instance, host = this.Host, key = this.UserKey, uid = this.UId, cryppasswd = this.CryptPasswd, created = this.Created, properties = this.Properties, }; return(Newtonsoft.Json.JsonConvert.SerializeObject(bar)); }
/// <summary> /// Serealize this object /// </summary> /// <returns></returns> private new string Serialize() { var ps = new PersonalSerialize { id = Id, host = Host, instance = Instance, user = User, internalToken = InternalToken, properties = Properties, duedate = DueDate, roles = role, expire = Expire, }; return(Newtonsoft.Json.JsonConvert.SerializeObject(ps)); }