コード例 #1
0
        public bool Equals(UserToUserContext input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     IsFollowing == input.IsFollowing ||
                     (IsFollowing != null && IsFollowing.Equals(input.IsFollowing))
                     ) &&
                 (
                     IgnoreStatus == input.IgnoreStatus ||
                     (IgnoreStatus != null && IgnoreStatus.Equals(input.IgnoreStatus))
                 ) &&
                 (
                     GlobalIgnoreEndDate == input.GlobalIgnoreEndDate ||
                     (GlobalIgnoreEndDate != null && GlobalIgnoreEndDate.Equals(input.GlobalIgnoreEndDate))
                 ));
        }
コード例 #2
0
        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))
                 ));
        }