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

            return
                ((
                     CorporationName == other.CorporationName ||
                     CorporationName != null &&
                     CorporationName.Equals(other.CorporationName)
                     ) &&
                 (
                     GroupName == other.GroupName ||
                     GroupName != null &&
                     GroupName.Equals(other.GroupName)
                 ) &&
                 (
                     IsUnderestablishment == other.IsUnderestablishment ||
                     IsUnderestablishment != null &&
                     IsUnderestablishment.Equals(other.IsUnderestablishment)
                 ));
        }
Exemplo n.º 2
0
 // Sees if two conditions are equal. Case insensitivity only for groupbname,eventname,action.  Others the case is significant (variables, condition)
 public bool Equals(Condition c, StringComparison ci = StringComparison.InvariantCultureIgnoreCase)
 {
     return(GroupName.HasChars() && GroupName.Equals(c.GroupName, ci) &&          // groupname can be null
            EventName.Equals(c.EventName, ci) &&
            Action.Equals(c.Action, ci) &&
            ActionVars.ToString() == c.ActionVars.ToString() &&
            ToString(false) == c.ToString(false));
 }
Exemplo n.º 3
0
        public bool Equals(IFfnAddress other)
        {
            if (other is GroupAddress otherGroup)
            {
                return(GroupName.Equals(otherGroup.GroupName) && Address.Equals(otherGroup.Address) && LinkedId.Equals(otherGroup.LinkedId));
            }

            return(false);
        }
Exemplo n.º 4
0
 public virtual bool Equals(Group group)
 {
     if (group == null)
     {
         return(false);
     }
     if (object.ReferenceEquals(this, group))
     {
         return(true);
     }
     return(GroupName.Equals(group.GroupName));
 }
Exemplo n.º 5
0
 public bool Equals(MultiServerKey other)
 {
     if (GroupName.Equals(other.GroupName) &&
         Ip.Equals(other.Ip) &&
         Port.Equals(other.Port) &&
         Database.Equals(other.Database)
         )
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
            /// <summary>
            /// Determines whether the specified <see cref="Object" />, is equal to this instance.
            /// </summary>
            /// <param name="obj">The <see cref="Object" /> to compare with this instance.</param>
            /// <returns>
            ///   <c>true</c> if the specified <see cref="Object" /> is equal to this instance; otherwise, <c>false</c>.
            /// </returns>
            public override bool Equals(object obj)
            {
                if (!(obj is Parameter))
                {
                    // ReSharper disable once BaseObjectEqualsIsObjectEquals
                    return(base.Equals(obj));
                }

                var other = (Parameter)obj;

                return(Guid.Equals(other.Guid) &&
                       Name.Equals(other.Name) &&
                       IsShared.Equals(other.IsShared) &&
                       Description.Equals(other.Description) &&
                       (GroupId.Equals(other.GroupId) || GroupName.Equals(other.GroupName)));
            }
Exemplo n.º 7
0
        public bool Equals(GroupNameSearchRequest input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     GroupName == input.GroupName ||
                     (GroupName != null && GroupName.Equals(input.GroupName))
                     ) &&
                 (
                     GroupType == input.GroupType ||
                     (GroupType != null && GroupType.Equals(input.GroupType))
                 ));
        }
        /// <summary>
        /// Returns true if ConfigDescriptionParameterDTO instances are equal
        /// </summary>
        /// <param name="input">Instance of ConfigDescriptionParameterDTO to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ConfigDescriptionParameterDTO input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Context == input.Context ||
                     (Context != null &&
                      Context.Equals(input.Context))
                     ) &&
                 (
                     DefaultValue == input.DefaultValue ||
                     (DefaultValue != null &&
                      DefaultValue.Equals(input.DefaultValue))
                 ) &&
                 (
                     Description == input.Description ||
                     (Description != null &&
                      Description.Equals(input.Description))
                 ) &&
                 (
                     Label == input.Label ||
                     (Label != null &&
                      Label.Equals(input.Label))
                 ) &&
                 (
                     Name == input.Name ||
                     (Name != null &&
                      Name.Equals(input.Name))
                 ) &&
                 (
                     Required == input.Required ||
                     (Required != null &&
                      Required.Equals(input.Required))
                 ) &&
                 (
                     Type == input.Type ||
                     (Type != null &&
                      Type.Equals(input.Type))
                 ) &&
                 (
                     Min == input.Min ||
                     (Min != null &&
                      Min.Equals(input.Min))
                 ) &&
                 (
                     Max == input.Max ||
                     (Max != null &&
                      Max.Equals(input.Max))
                 ) &&
                 (
                     Stepsize == input.Stepsize ||
                     (Stepsize != null &&
                      Stepsize.Equals(input.Stepsize))
                 ) &&
                 (
                     Pattern == input.Pattern ||
                     (Pattern != null &&
                      Pattern.Equals(input.Pattern))
                 ) &&
                 (
                     ReadOnly == input.ReadOnly ||
                     (ReadOnly != null &&
                      ReadOnly.Equals(input.ReadOnly))
                 ) &&
                 (
                     Multiple == input.Multiple ||
                     (Multiple != null &&
                      Multiple.Equals(input.Multiple))
                 ) &&
                 (
                     MultipleLimit == input.MultipleLimit ||
                     (MultipleLimit != null &&
                      MultipleLimit.Equals(input.MultipleLimit))
                 ) &&
                 (
                     GroupName == input.GroupName ||
                     (GroupName != null &&
                      GroupName.Equals(input.GroupName))
                 ) &&
                 (
                     Advanced == input.Advanced ||
                     (Advanced != null &&
                      Advanced.Equals(input.Advanced))
                 ) &&
                 (
                     Verify == input.Verify ||
                     (Verify != null &&
                      Verify.Equals(input.Verify))
                 ) &&
                 (
                     LimitToOptions == input.LimitToOptions ||
                     (LimitToOptions != null &&
                      LimitToOptions.Equals(input.LimitToOptions))
                 ) &&
                 (
                     Unit == input.Unit ||
                     (Unit != null &&
                      Unit.Equals(input.Unit))
                 ) &&
                 (
                     UnitLabel == input.UnitLabel ||
                     (UnitLabel != null &&
                      UnitLabel.Equals(input.UnitLabel))
                 ) &&
                 (
                     Options == input.Options ||
                     Options != null &&
                     Options.SequenceEqual(input.Options)
                 ) &&
                 (
                     FilterCriteria == input.FilterCriteria ||
                     FilterCriteria != null &&
                     FilterCriteria.SequenceEqual(input.FilterCriteria)
                 ));
        }
Exemplo n.º 9
0
 public Boolean Equals(TelegramGroupNotification other)
 => GroupName.Equals(other.GroupName);