public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.syncProfile) { hashcode = (hashcode * 397) + SyncProfile.GetHashCode(); } if (__isset.syncSettings) { hashcode = (hashcode * 397) + SyncSettings.GetHashCode(); } if (__isset.syncSticker) { hashcode = (hashcode * 397) + SyncSticker.GetHashCode(); } if (__isset.syncThemeShop) { hashcode = (hashcode * 397) + SyncThemeShop.GetHashCode(); } if (__isset.contact) { hashcode = (hashcode * 397) + Contact.GetHashCode(); } if (__isset.@group) { hashcode = (hashcode * 397) + Group.GetHashCode(); } if (__isset.room) { hashcode = (hashcode * 397) + Room.GetHashCode(); } if (__isset.chat) { hashcode = (hashcode * 397) + Chat.GetHashCode(); } } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("SyncScope("); bool __first = true; if (__isset.syncProfile) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SyncProfile: "); SyncProfile.ToString(sb); } if (__isset.syncSettings) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SyncSettings: "); SyncSettings.ToString(sb); } if (__isset.syncSticker) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SyncSticker: "); SyncSticker.ToString(sb); } if (__isset.syncThemeShop) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SyncThemeShop: "); SyncThemeShop.ToString(sb); } if (Contact != null && __isset.contact) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Contact: "); Contact.ToString(sb); } if (Group != null && __isset.@group) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Group: "); Group.ToString(sb); } if (Room != null && __isset.room) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Room: "); Room.ToString(sb); } if (Chat != null && __isset.chat) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Chat: "); Chat.ToString(sb); } sb.Append(")"); return(sb.ToString()); }