public override int GetHashCode() { unchecked { var hashCode = Id?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (RoomId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Message?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ IsBot.GetHashCode(); hashCode = (hashCode * 397) ^ (CreatedBy?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ CreatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ (EditedBy?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ EditedOn.GetHashCode(); hashCode = (hashCode * 397) ^ IsBotMentioned.GetHashCode(); hashCode = (hashCode * 397) ^ IsFromMyself.GetHashCode(); hashCode = (hashCode * 397) ^ (Type?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Mentions.GetHashCode(); hashCode = (hashCode * 397) ^ Starred.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ImageUrl != null ? ImageUrl.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * 397) ^ (ButtonTitle != null ? ButtonTitle.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ButtonAction != null ? ButtonAction.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Author != null ? Author.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CommentsCount; hashCode = (hashCode * 397) ^ LikesCount; hashCode = (hashCode * 397) ^ IsLikedByMe.GetHashCode(); hashCode = (hashCode * 397) ^ StickyStart.GetHashCode(); hashCode = (hashCode * 397) ^ StickyEnd.GetHashCode(); hashCode = (hashCode * 397) ^ (Mentions != null ? Mentions.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FeedId != null ? FeedId.GetHashCode() : 0); return(hashCode); } }