Example #1
0
        public bool Equals(GalleryChildItem other)
        {
            if (ReferenceEquals(objA: null, objB: other))
            {
                return(false);
            }

            if (ReferenceEquals(this, objB: other))
            {
                return(true);
            }

            return(this.Type == other.Type && this.Location == other.Location && this.DateUpdated == other.DateUpdated && this.DateCreated == other.DateCreated &&
                   this.Description == other.Description && this.Title == other.Title && this.Path == other.Path && this.OriginalAlbumPath.AsEmpty() == other.OriginalAlbumPath.AsEmpty() &&
                   ItemUpdateHelpers.CollectionEquals(lhs: this.ImageSizes, rhs: other.ImageSizes));
        }
Example #2
0
        public bool Equals(GalleryEntry other)
        {
            if (ReferenceEquals(objA: null, objB: other))
            {
                return(false);
            }

            if (ReferenceEquals(this, objB: other))
            {
                return(true);
            }

            return(this.Path == other.Path && this.OriginalAlbumPath.AsEmpty() == other.OriginalAlbumPath.AsEmpty() && this.Title == other.Title && this.Description == other.Description &&
                   this.DateCreated == other.DateCreated && this.DateUpdated == other.DateUpdated && this.Location == other.Location && this.Rating == other.Rating &&
                   ItemUpdateHelpers.CollectionEquals(lhs: this.ImageSizes, rhs: other.ImageSizes) && ItemUpdateHelpers.CollectionEquals(lhs: this.Children, rhs: other.Children) &&
                   ItemUpdateHelpers.CollectionEquals(lhs: this.Metadata, rhs: other.Metadata) && ItemUpdateHelpers.CollectionEquals(lhs: this.Keywords, rhs: other.Keywords));
        }
Example #3
0
        public bool Equals(GalleryItem other)
        {
            if (ReferenceEquals(objA: null, objB: other))
            {
                return(false);
            }

            if (ReferenceEquals(this, objB: other))
            {
                return(true);
            }

            return(this.Path == other.Path && this.OriginalAlbumPath.AsEmpty() == other.OriginalAlbumPath.AsEmpty() && this.Title == other.Title && this.Description == other.Description &&
                   this.DateCreated == other.DateCreated && this.DateUpdated == other.DateUpdated && this.Location == other.Location && this.Type == other.Type && this.Previous == other.Previous &&
                   this.Next == other.Next && this.Last == other.Last && ItemUpdateHelpers.CollectionEquals(lhs: this.ImageSizes, rhs: other.ImageSizes) &&
                   ItemUpdateHelpers.CollectionEquals(lhs: this.Metadata, rhs: other.Metadata) && ItemUpdateHelpers.CollectionEquals(lhs: this.Keywords, rhs: other.Keywords) &&
                   ItemUpdateHelpers.CollectionEquals(lhs: this.Children, rhs: other.Children) && ItemUpdateHelpers.CollectionEquals(lhs: this.Breadcrumbs, rhs: other.Breadcrumbs) &&
                   this.First == other.First);
        }