public bool Equals(ImageModel other) => other != null && Id == other.Id && UserId == other.UserId && Thumbnail.Equals(other.Thumbnail) && Preview.Equals(other.Preview) && Original.Equals(other.Original) && Name == other.Name && Description == other.Description && When == other.When && Location.Equals(other.Location);
/// <summary> /// Returns true if RecipeObjectMetaImages instances are equal /// </summary> /// <param name="other">Instance of RecipeObjectMetaImages to be compared</param> /// <returns>Boolean</returns> public bool Equals(RecipeObjectMetaImages other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ExtraLarge == other.ExtraLarge || ExtraLarge != null && ExtraLarge.Equals(other.ExtraLarge) ) && ( Large == other.Large || Large != null && Large.Equals(other.Large) ) && ( Standard == other.Standard || Standard != null && Standard.Equals(other.Standard) ) && ( GridView == other.GridView || GridView != null && GridView.Equals(other.GridView) ) && ( Small == other.Small || Small != null && Small.Equals(other.Small) ) && ( Thumbnail == other.Thumbnail || Thumbnail != null && Thumbnail.Equals(other.Thumbnail) ) && ( ExtraSmall == other.ExtraSmall || ExtraSmall != null && ExtraSmall.Equals(other.ExtraSmall) )); }
public bool Equals(PostResponse input) { if (input == null) { return(false); } return (( LastReplyTimestamp == input.LastReplyTimestamp || (LastReplyTimestamp != null && LastReplyTimestamp.Equals(input.LastReplyTimestamp)) ) && ( IsPinned == input.IsPinned || (IsPinned != null && IsPinned.Equals(input.IsPinned)) ) && ( UrlMediaType == input.UrlMediaType || (UrlMediaType != null && UrlMediaType.Equals(input.UrlMediaType)) ) && ( Thumbnail == input.Thumbnail || (Thumbnail != null && Thumbnail.Equals(input.Thumbnail)) ) && ( Popularity == input.Popularity || (Popularity != null && Popularity.Equals(input.Popularity)) ) && ( IsActive == input.IsActive || (IsActive != null && IsActive.Equals(input.IsActive)) ) && ( IsAnnouncement == input.IsAnnouncement || (IsAnnouncement != null && IsAnnouncement.Equals(input.IsAnnouncement)) ) && ( UserRating == input.UserRating || (UserRating.Equals(input.UserRating)) ) && ( UserHasRated == input.UserHasRated || (UserHasRated != null && UserHasRated.Equals(input.UserHasRated)) ) && ( UserHasMutedPost == input.UserHasMutedPost || (UserHasMutedPost != null && UserHasMutedPost.Equals(input.UserHasMutedPost)) ) && ( LatestReplyPostId == input.LatestReplyPostId || (LatestReplyPostId.Equals(input.LatestReplyPostId)) ) && ( LatestReplyAuthorId == input.LatestReplyAuthorId || (LatestReplyAuthorId.Equals(input.LatestReplyAuthorId)) ) && ( IgnoreStatus == input.IgnoreStatus || (IgnoreStatus != null && IgnoreStatus.Equals(input.IgnoreStatus)) ) && ( Locale == input.Locale || (Locale != null && Locale.Equals(input.Locale)) )); }