Esempio n. 1
0
 protected override bool _Equals(TaskDict other)
 {
     return(Directions.Equals(other.Directions) &&
            AudioUrl.Equals(other.AudioUrl) &&
            ImageUrl.Equals(other.ImageUrl) &&
            Location.Equals(other.Location));
 }
 public override bool Equals(object obj)
 {
     if (!(obj is TwitchChannelModel instance))
     {
         return(false);
     }
     return(ChannelName.Equals(instance.ChannelName, StringComparison.InvariantCultureIgnoreCase) &&
            ImageUrl.Equals(instance.ImageUrl, StringComparison.InvariantCultureIgnoreCase) &&
            IsFollowerSubscribed == instance.IsFollowerSubscribed &&
            IsStreamSubscribed == instance.IsStreamSubscribed);
 }
        /// <summary>
        /// Returns true if ProductImageDto instances are equal
        /// </summary>
        /// <param name="other">Instance of ProductImageDto to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ProductImageDto other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ImageUrl == other.ImageUrl ||
                     ImageUrl != null &&
                     ImageUrl.Equals(other.ImageUrl)
                     ) &&
                 (
                     ImageID == other.ImageID ||

                     ImageID.Equals(other.ImageID)
                 ));
        }
Esempio n. 4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            var temp = obj as Entry;

            if (ContentCategory.Id == temp.ContentCategory.Id &&
                Title.Equals(temp.Title) &&
                Description.Equals(temp.Description) &&
                Content.Equals(temp.Content))
            {
                if (ImageUrl == null)
                {
                    return(temp.ImageUrl == null);
                }
                return(ImageUrl.Equals(temp.ImageUrl));
            }

            return(false);
        }
 public override bool Equals(object obj)
 {
     if (obj is Speaker)
     {
         var second = (Speaker)obj;
         return(Name.Equals(second.Name, StringComparison.CurrentCultureIgnoreCase) && ImageUrl.Equals(second.ImageUrl, StringComparison.CurrentCultureIgnoreCase));
     }
     return(false);
 }
Esempio n. 6
0
 public bool IsShowingViewPreviewImage()
 {
     return(ImageUrl.Equals(CollapseImageUrl));
 }