public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.squareChatMid) { hashcode = (hashcode * 397) + SquareChatMid.GetHashCode(); } if (__isset.squareMid) { hashcode = (hashcode * 397) + SquareMid.GetHashCode(); } if (__isset.type) { hashcode = (hashcode * 397) + Type.GetHashCode(); } if (__isset.name) { hashcode = (hashcode * 397) + Name.GetHashCode(); } if (__isset.chatImageObsHash) { hashcode = (hashcode * 397) + ChatImageObsHash.GetHashCode(); } if (__isset.squareChatRevision) { hashcode = (hashcode * 397) + SquareChatRevision.GetHashCode(); } if (__isset.maxMemberCount) { hashcode = (hashcode * 397) + MaxMemberCount.GetHashCode(); } if (__isset.state) { hashcode = (hashcode * 397) + State.GetHashCode(); } } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("SquareChat("); bool __first = true; if (SquareChatMid != null && __isset.squareChatMid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SquareChatMid: "); SquareChatMid.ToString(sb); } if (SquareMid != null && __isset.squareMid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SquareMid: "); SquareMid.ToString(sb); } if (__isset.type) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Type: "); Type.ToString(sb); } if (Name != null && __isset.name) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Name: "); Name.ToString(sb); } if (ChatImageObsHash != null && __isset.chatImageObsHash) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ChatImageObsHash: "); ChatImageObsHash.ToString(sb); } if (__isset.squareChatRevision) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SquareChatRevision: "); SquareChatRevision.ToString(sb); } if (__isset.maxMemberCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MaxMemberCount: "); MaxMemberCount.ToString(sb); } if (__isset.state) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("State: "); State.ToString(sb); } sb.Append(")"); return(sb.ToString()); }