public Result(Requestcode errcode, object data) { this.code = errcode; this.msg = EnumHelper <Requestcode> .GetEnumDescription(errcode); this.Data = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(data)); }
public Result(Requestcode errcode) { this.code = errcode; this.msg = EnumHelper <Requestcode> .GetEnumDescription(errcode); this.Data = null; }
public override int GetHashCode() { int hash = 1; if (Requestcode != global::SocketGameProtocol.RequestCode.RequestNone) { hash ^= Requestcode.GetHashCode(); } if (Actioncode != global::SocketGameProtocol.ActionCode.ActionNone) { hash ^= Actioncode.GetHashCode(); } if (Returncode != global::SocketGameProtocol.ReturnCode.ReturnNone) { hash ^= Returncode.GetHashCode(); } if (loginpack_ != null) { hash ^= Loginpack.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public Result(Requestcode errcode, string errmsg, object data) { this.code = errcode; this.msg = errmsg; this.Data = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(data)); }
public Result(Requestcode errcode, string errmsg) { this.code = errcode; this.msg = errmsg; this.Data = null; }