public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.channelId) { hashcode = (hashcode * 397) + ChannelId.GetHashCode(); } if (__isset.name) { hashcode = (hashcode * 397) + Name.GetHashCode(); } if (__isset.notificationReceivable) { hashcode = (hashcode * 397) + NotificationReceivable.GetHashCode(); } if (__isset.messageReceivable) { hashcode = (hashcode * 397) + MessageReceivable.GetHashCode(); } if (__isset.showDefault) { hashcode = (hashcode * 397) + ShowDefault.GetHashCode(); } } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("ChannelNotificationSetting("); bool __first = true; if (ChannelId != null && __isset.channelId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ChannelId: "); ChannelId.ToString(sb); } if (Name != null && __isset.name) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Name: "); Name.ToString(sb); } if (__isset.notificationReceivable) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("NotificationReceivable: "); NotificationReceivable.ToString(sb); } if (__isset.messageReceivable) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MessageReceivable: "); MessageReceivable.ToString(sb); } if (__isset.showDefault) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ShowDefault: "); ShowDefault.ToString(sb); } sb.Append(")"); return(sb.ToString()); }