public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.mid) { hashcode = (hashcode * 397) + Mid.GetHashCode(); } if (__isset.name) { hashcode = (hashcode * 397) + Name.GetHashCode(); } if (__isset.welcomeMessage) { hashcode = (hashcode * 397) + WelcomeMessage.GetHashCode(); } if (__isset.profileImageObsHash) { hashcode = (hashcode * 397) + ProfileImageObsHash.GetHashCode(); } if (__isset.desc) { hashcode = (hashcode * 397) + Desc.GetHashCode(); } if (__isset.searchable) { hashcode = (hashcode * 397) + Searchable.GetHashCode(); } if (__isset.type) { hashcode = (hashcode * 397) + Type.GetHashCode(); } if (__isset.categoryID) { hashcode = (hashcode * 397) + CategoryID.GetHashCode(); } if (__isset.invitationURL) { hashcode = (hashcode * 397) + InvitationURL.GetHashCode(); } if (__isset.revision) { hashcode = (hashcode * 397) + Revision.GetHashCode(); } if (__isset.ableToUseInvitationTicket) { hashcode = (hashcode * 397) + AbleToUseInvitationTicket.GetHashCode(); } if (__isset.state) { hashcode = (hashcode * 397) + State.GetHashCode(); } } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("Square("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (Name != null && __isset.name) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Name: "); Name.ToString(sb); } if (WelcomeMessage != null && __isset.welcomeMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("WelcomeMessage: "); WelcomeMessage.ToString(sb); } if (ProfileImageObsHash != null && __isset.profileImageObsHash) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ProfileImageObsHash: "); ProfileImageObsHash.ToString(sb); } if (Desc != null && __isset.desc) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Desc: "); Desc.ToString(sb); } if (__isset.searchable) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Searchable: "); Searchable.ToString(sb); } if (__isset.type) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Type: "); Type.ToString(sb); } if (__isset.categoryID) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CategoryID: "); CategoryID.ToString(sb); } if (InvitationURL != null && __isset.invitationURL) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("InvitationURL: "); InvitationURL.ToString(sb); } if (__isset.revision) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Revision: "); Revision.ToString(sb); } if (__isset.ableToUseInvitationTicket) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AbleToUseInvitationTicket: "); AbleToUseInvitationTicket.ToString(sb); } if (__isset.state) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("State: "); State.ToString(sb); } sb.Append(")"); return(sb.ToString()); }