/// <summary>
        /// Returns true if SessionRequest instances are equal
        /// </summary>
        /// <param name="other">Instance of SessionRequest to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SessionRequest other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CreatorEmail == other.CreatorEmail ||
                     CreatorEmail != null &&
                     CreatorEmail.Equals(other.CreatorEmail)
                     ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     DateBegin == other.DateBegin ||
                     DateBegin != null &&
                     DateBegin.Equals(other.DateBegin)
                 ) &&
                 (
                     DateEnd == other.DateEnd ||
                     DateEnd != null &&
                     DateEnd.Equals(other.DateEnd)
                 ) &&
                 (
                     TimeZone == other.TimeZone ||
                     TimeZone != null &&
                     TimeZone.Equals(other.TimeZone)
                 ) &&
                 (
                     SessionId == other.SessionId ||
                     SessionId != null &&
                     SessionId.Equals(other.SessionId)
                 ));
        }
Exemple #2
0
        public bool Equals(TrendingEntryDestinyRitual input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Image == input.Image ||
                     (Image != null && Image.Equals(input.Image))
                     ) &&
                 (
                     Icon == input.Icon ||
                     (Icon != null && Icon.Equals(input.Icon))
                 ) &&
                 (
                     Title == input.Title ||
                     (Title != null && Title.Equals(input.Title))
                 ) &&
                 (
                     Subtitle == input.Subtitle ||
                     (Subtitle != null && Subtitle.Equals(input.Subtitle))
                 ) &&
                 (
                     DateStart == input.DateStart ||
                     (DateStart != null && DateStart.Equals(input.DateStart))
                 ) &&
                 (
                     DateEnd == input.DateEnd ||
                     (DateEnd != null && DateEnd.Equals(input.DateEnd))
                 ) &&
                 (
                     MilestoneDetails == input.MilestoneDetails ||
                     (MilestoneDetails != null && MilestoneDetails.Equals(input.MilestoneDetails))
                 ) &&
                 (
                     EventContent == input.EventContent ||
                     (EventContent != null && EventContent.Equals(input.EventContent))
                 ));
        }