public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.mid) { hashcode = (hashcode * 397) + Mid.GetHashCode(); } if (__isset.userid) { hashcode = (hashcode * 397) + Userid.GetHashCode(); } if (__isset.phone) { hashcode = (hashcode * 397) + Phone.GetHashCode(); } if (__isset.email) { hashcode = (hashcode * 397) + Email.GetHashCode(); } if (__isset.regionCode) { hashcode = (hashcode * 397) + RegionCode.GetHashCode(); } if (__isset.displayName) { hashcode = (hashcode * 397) + DisplayName.GetHashCode(); } if (__isset.phoneticName) { hashcode = (hashcode * 397) + PhoneticName.GetHashCode(); } if (__isset.pictureStatus) { hashcode = (hashcode * 397) + PictureStatus.GetHashCode(); } if (__isset.thumbnailUrl) { hashcode = (hashcode * 397) + ThumbnailUrl.GetHashCode(); } if (__isset.statusMessage) { hashcode = (hashcode * 397) + StatusMessage.GetHashCode(); } if (__isset.allowSearchByUserid) { hashcode = (hashcode * 397) + AllowSearchByUserid.GetHashCode(); } if (__isset.allowSearchByEmail) { hashcode = (hashcode * 397) + AllowSearchByEmail.GetHashCode(); } if (__isset.picturePath) { hashcode = (hashcode * 397) + PicturePath.GetHashCode(); } if (__isset.musicProfile) { hashcode = (hashcode * 397) + MusicProfile.GetHashCode(); } if (__isset.videoProfile) { hashcode = (hashcode * 397) + VideoProfile.GetHashCode(); } } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("Profile("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (Userid != null && __isset.userid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Userid: "); Userid.ToString(sb); } if (Phone != null && __isset.phone) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Phone: "); Phone.ToString(sb); } if (Email != null && __isset.email) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Email: "); Email.ToString(sb); } if (RegionCode != null && __isset.regionCode) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RegionCode: "); RegionCode.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (PhoneticName != null && __isset.phoneticName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PhoneticName: "); PhoneticName.ToString(sb); } if (PictureStatus != null && __isset.pictureStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PictureStatus: "); PictureStatus.ToString(sb); } if (ThumbnailUrl != null && __isset.thumbnailUrl) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("ThumbnailUrl: "); ThumbnailUrl.ToString(sb); } if (StatusMessage != null && __isset.statusMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("StatusMessage: "); StatusMessage.ToString(sb); } if (__isset.allowSearchByUserid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AllowSearchByUserid: "); AllowSearchByUserid.ToString(sb); } if (__isset.allowSearchByEmail) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AllowSearchByEmail: "); AllowSearchByEmail.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (MusicProfile != null && __isset.musicProfile) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("MusicProfile: "); MusicProfile.ToString(sb); } if (VideoProfile != null && __isset.videoProfile) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("VideoProfile: "); VideoProfile.ToString(sb); } sb.Append(")"); return(sb.ToString()); }