public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.sessionId) { hashcode = (hashcode * 397) + SessionId.GetHashCode(); } if (__isset.method) { hashcode = (hashcode * 397) + Method.GetHashCode(); } if (__isset.callback) { hashcode = (hashcode * 397) + Callback.GetHashCode(); } if (__isset.normalizedPhone) { hashcode = (hashcode * 397) + NormalizedPhone.GetHashCode(); } if (__isset.countryCode) { hashcode = (hashcode * 397) + CountryCode.GetHashCode(); } if (__isset.nationalSignificantNumber) { hashcode = (hashcode * 397) + NationalSignificantNumber.GetHashCode(); } if (__isset.availableVerificationMethods) { hashcode = (hashcode * 397) + TCollections.GetHashCode(AvailableVerificationMethods); } } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("VerificationSessionData("); bool __first = true; if (SessionId != null && __isset.sessionId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SessionId: "); SessionId.ToString(sb); } if (__isset.method) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Method: "); Method.ToString(sb); } if (Callback != null && __isset.callback) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Callback: "); Callback.ToString(sb); } if (NormalizedPhone != null && __isset.normalizedPhone) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("NormalizedPhone: "); NormalizedPhone.ToString(sb); } if (CountryCode != null && __isset.countryCode) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CountryCode: "); CountryCode.ToString(sb); } if (NationalSignificantNumber != null && __isset.nationalSignificantNumber) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("NationalSignificantNumber: "); NationalSignificantNumber.ToString(sb); } if (AvailableVerificationMethods != null && __isset.availableVerificationMethods) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AvailableVerificationMethods: "); AvailableVerificationMethods.ToString(sb); } sb.Append(")"); return(sb.ToString()); }