예제 #1
0
 private bool Diff(LiveThread compare)
 {
     return(!(Id.Equals(compare.Id) &&
              Description.Equals(compare.Description) &&
              NSFW.Equals(compare.NSFW) &&
              Resources.Equals(compare.Resources) &&
              TotalViews.Equals(compare.TotalViews) &&
              Created.Equals(compare.Created) &&
              Fullname.Equals(compare.Fullname) &&
              IsAnnouncement.Equals(compare.IsAnnouncement) &&
              AnnouncementURL.Equals(compare.AnnouncementURL) &&
              State.Equals(compare.State) &&
              ViewerCount.Equals(compare.ViewerCount) &&
              Icon.Equals(compare.Icon)));
 }
예제 #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))
                 ));
        }