public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.mid) { hashcode = (hashcode * 397) + Mid.GetHashCode(); } if (__isset.displayName) { hashcode = (hashcode * 397) + DisplayName.GetHashCode(); } if (__isset.pictureStatus) { hashcode = (hashcode * 397) + PictureStatus.GetHashCode(); } if (__isset.picturePath) { hashcode = (hashcode * 397) + PicturePath.GetHashCode(); } if (__isset.statusMessage) { hashcode = (hashcode * 397) + StatusMessage.GetHashCode(); } } return(hashcode); }
public async Task <IActionResult> PutPicturePath([FromRoute] decimal id, [FromBody] PicturePath picturePath) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != picturePath.Id) { return(BadRequest()); } _context.Entry(picturePath).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PicturePathExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public override string ToString() { var sb = new StringBuilder("SimpleChannelContact("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (PictureStatus != null && __isset.pictureStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PictureStatus: "); PictureStatus.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (StatusMessage != null && __isset.statusMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("StatusMessage: "); StatusMessage.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public async Task <IActionResult> PostPicturePath([FromBody] PicturePath picturePath) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _context.PicturePath.Add(picturePath); await _context.SaveChangesAsync(); return(CreatedAtAction("GetPicturePath", new { id = picturePath.Id }, picturePath)); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.eMid) { hashcode = (hashcode * 397) + EMid.GetHashCode(); } if (__isset.mid) { hashcode = (hashcode * 397) + Mid.GetHashCode(); } if (__isset.direction) { hashcode = (hashcode * 397) + Direction.GetHashCode(); } if (__isset.method) { hashcode = (hashcode * 397) + Method.GetHashCode(); } if (__isset.param) { hashcode = (hashcode * 397) + Param.GetHashCode(); } if (__isset.timestamp) { hashcode = (hashcode * 397) + Timestamp.GetHashCode(); } if (__isset.seqId) { hashcode = (hashcode * 397) + SeqId.GetHashCode(); } if (__isset.displayName) { hashcode = (hashcode * 397) + DisplayName.GetHashCode(); } if (__isset.picturePath) { hashcode = (hashcode * 397) + PicturePath.GetHashCode(); } if (__isset.pictureStatus) { hashcode = (hashcode * 397) + PictureStatus.GetHashCode(); } } return(hashcode); }
protected override string ValidateProperty(string propertyName) { String error = String.Empty; switch (propertyName) { case "PicturePath": if (!PicturePath.IsValidPath()) { error = "The path is invalid. It must be a valid Windows path."; } break; } return(error); }
public override string ToString() { var sb = new StringBuilder("BuddySearchResult("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (PictureStatus != null && __isset.pictureStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PictureStatus: "); PictureStatus.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (StatusMessage != null && __isset.statusMessage) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("StatusMessage: "); StatusMessage.ToString(sb); } if (__isset.businessAccount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("BusinessAccount: "); BusinessAccount.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.mid) { hashcode = (hashcode * 397) + Mid.GetHashCode(); } if (__isset.createdTime) { hashcode = (hashcode * 397) + CreatedTime.GetHashCode(); } if (__isset.type) { hashcode = (hashcode * 397) + Type.GetHashCode(); } if (__isset.status) { hashcode = (hashcode * 397) + Status.GetHashCode(); } if (__isset.relation) { hashcode = (hashcode * 397) + Relation.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.displayNameOverridden) { hashcode = (hashcode * 397) + DisplayNameOverridden.GetHashCode(); } if (__isset.favoriteTime) { hashcode = (hashcode * 397) + FavoriteTime.GetHashCode(); } if (__isset.capableVoiceCall) { hashcode = (hashcode * 397) + CapableVoiceCall.GetHashCode(); } if (__isset.capableVideoCall) { hashcode = (hashcode * 397) + CapableVideoCall.GetHashCode(); } if (__isset.capableMyhome) { hashcode = (hashcode * 397) + CapableMyhome.GetHashCode(); } if (__isset.capableBuddy) { hashcode = (hashcode * 397) + CapableBuddy.GetHashCode(); } if (__isset.attributes) { hashcode = (hashcode * 397) + Attributes.GetHashCode(); } if (__isset.settings) { hashcode = (hashcode * 397) + Settings.GetHashCode(); } if (__isset.picturePath) { hashcode = (hashcode * 397) + PicturePath.GetHashCode(); } if (__isset.recommendParams) { hashcode = (hashcode * 397) + RecommendParams.GetHashCode(); } if (__isset.friendRequestStatus) { hashcode = (hashcode * 397) + FriendRequestStatus.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("Contact("); bool __first = true; if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (__isset.createdTime) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CreatedTime: "); CreatedTime.ToString(sb); } if (__isset.type) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Type: "); Type.ToString(sb); } if (__isset.status) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Status: "); Status.ToString(sb); } if (__isset.relation) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Relation: "); Relation.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 (DisplayNameOverridden != null && __isset.displayNameOverridden) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayNameOverridden: "); DisplayNameOverridden.ToString(sb); } if (__isset.favoriteTime) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FavoriteTime: "); FavoriteTime.ToString(sb); } if (__isset.capableVoiceCall) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableVoiceCall: "); CapableVoiceCall.ToString(sb); } if (__isset.capableVideoCall) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableVideoCall: "); CapableVideoCall.ToString(sb); } if (__isset.capableMyhome) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableMyhome: "); CapableMyhome.ToString(sb); } if (__isset.capableBuddy) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("CapableBuddy: "); CapableBuddy.ToString(sb); } if (__isset.attributes) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Attributes: "); Attributes.ToString(sb); } if (__isset.settings) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Settings: "); Settings.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (RecommendParams != null && __isset.recommendParams) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RecommendParams: "); RecommendParams.ToString(sb); } if (__isset.friendRequestStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("FriendRequestStatus: "); FriendRequestStatus.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()); }
public override string ToString() { var sb = new StringBuilder("FriendRequest("); bool __first = true; if (EMid != null && __isset.eMid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("EMid: "); EMid.ToString(sb); } if (Mid != null && __isset.mid) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Mid: "); Mid.ToString(sb); } if (__isset.direction) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Direction: "); Direction.ToString(sb); } if (__isset.method) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Method: "); Method.ToString(sb); } if (Param != null && __isset.param) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Param: "); Param.ToString(sb); } if (__isset.timestamp) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Timestamp: "); Timestamp.ToString(sb); } if (__isset.seqId) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SeqId: "); SeqId.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (PicturePath != null && __isset.picturePath) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PicturePath: "); PicturePath.ToString(sb); } if (PictureStatus != null && __isset.pictureStatus) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PictureStatus: "); PictureStatus.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
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()); }