Пример #1
0
 /// <summary>
 /// Determines whether the specified <see cref="AvailablePeriod"/> is
 /// equal to the current <see cref="AvailablePeriod"/>.
 /// </summary>
 /// <param name="other">
 /// The <see cref="AvailablePeriod"/> to compare with the current
 /// <see cref="AvailablePeriod"/>.
 /// </param>
 /// <returns>
 /// <c>true</c> if the specified <see cref="AvailablePeriod"/> is equal
 /// to the current <see cref="AvailablePeriod"/>; otherwise,
 /// <c>false</c>.
 /// </returns>
 public bool Equals(AvailablePeriod other)
 {
     return(other != null &&
            object.Equals(this.Start, other.Start) &&
            object.Equals(this.End, other.End) &&
            EnumerableUtils.NullTolerantSequenceEqual(this.Participants, other.Participants));
 }
Пример #2
0
 /// <summary>
 /// Determines whether the specified <see cref="Cronofy.Event"/> is
 /// equal to the current <see cref="Cronofy.Event"/>.
 /// </summary>
 /// <param name="other">
 /// The <see cref="Cronofy.Event"/> to compare with the current
 /// <see cref="Cronofy.Event"/>.
 /// </param>
 /// <returns>
 /// <c>true</c> if the specified <see cref="Cronofy.Event"/> is equal to
 /// the current <see cref="Cronofy.Event"/>; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(Event other)
 {
     return(other != null &&
            this.EventUid == other.EventUid &&
            this.GoogleEventId == other.GoogleEventId &&
            this.EventId == other.EventId &&
            this.CalendarId == other.CalendarId &&
            this.Created == other.Created &&
            this.Updated == other.Updated &&
            this.Deleted == other.Deleted &&
            this.Summary == other.Summary &&
            this.Description == other.Description &&
            this.ParticipationStatus == other.ParticipationStatus &&
            this.Transparency == other.Transparency &&
            this.EventStatus == other.EventStatus &&
            this.Recurring == other.Recurring &&
            this.MeetingUrl == other.MeetingUrl &&
            object.Equals(this.Organizer, other.Organizer) &&
            object.Equals(this.Location, other.Location) &&
            object.Equals(this.Start, other.Start) &&
            object.Equals(this.End, other.End) &&
            EnumerableUtils.NullTolerantSequenceEqual(this.Attendees, other.Attendees) &&
            EnumerableUtils.NullTolerantSequenceEqual(this.Categories, other.Categories));
 }
Пример #3
0
 /// <summary>
 /// Determines whether the specified <see cref="AvailableSequences"/> is
 /// equal to the current <see cref="AvailableSequences"/>.
 /// </summary>
 /// <param name="other">
 /// The <see cref="AvailableSequences"/> to compare with the current
 /// <see cref="AvailableSequences"/>.
 /// </param>
 /// <returns>
 /// <c>true</c> if the specified <see cref="AvailableSequences"/> is equal
 /// to the current <see cref="AvailableSequences"/>; otherwise,
 /// <c>false</c>.
 /// </returns>
 public bool Equals(AvailableSequences other)
 {
     return(other != null && EnumerableUtils.NullTolerantSequenceEqual(this.Sequences, other.Sequences));
 }
Пример #4
0
 /// <summary>
 /// Determines whether the specified <see cref="ChannelFilters"/>
 /// are equal to the current <see cref="ChannelFilters"/>.
 /// </summary>
 /// <param name="other">
 /// The <see cref="ChannelFilters"/> to compare with the current
 /// <see cref="ChannelFilters"/>.
 /// </param>
 /// <returns>
 /// <c>true</c> if the specified <see cref="ChannelFilters"/> are
 /// equal to the current <see cref="ChannelFilters"/>; otherwise,
 /// <c>false</c>.
 /// </returns>
 public bool Equals(ChannelFilters other)
 {
     return(other != null &&
            this.OnlyManaged == other.OnlyManaged &&
            EnumerableUtils.NullTolerantSequenceEqual(this.CalendarIds, other.CalendarIds));
 }