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

            return
                ((
                     UID == input.UID ||
                     (UID != null &&
                      UID.Equals(input.UID))
                     ) &&
                 (
                     Label == input.Label ||
                     (Label != null &&
                      Label.Equals(input.Label))
                 ) &&
                 (
                     Description == input.Description ||
                     (Description != null &&
                      Description.Equals(input.Description))
                 ) &&
                 (
                     Category == input.Category ||
                     (Category != null &&
                      Category.Equals(input.Category))
                 ) &&
                 (
                     Listed == input.Listed ||
                     (Listed != null &&
                      Listed.Equals(input.Listed))
                 ) &&
                 (
                     SupportedBridgeTypeUIDs == input.SupportedBridgeTypeUIDs ||
                     SupportedBridgeTypeUIDs != null &&
                     SupportedBridgeTypeUIDs.SequenceEqual(input.SupportedBridgeTypeUIDs)
                 ) &&
                 (
                     Bridge == input.Bridge ||
                     (Bridge != null &&
                      Bridge.Equals(input.Bridge))
                 ));
        }
예제 #2
0
        /// <summary>
        /// Returns true if ThingTypeDTO instances are equal
        /// </summary>
        /// <param name="input">Instance of ThingTypeDTO to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ThingTypeDTO input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     UID == input.UID ||
                     (UID != null &&
                      UID.Equals(input.UID))
                     ) &&
                 (
                     Label == input.Label ||
                     (Label != null &&
                      Label.Equals(input.Label))
                 ) &&
                 (
                     Description == input.Description ||
                     (Description != null &&
                      Description.Equals(input.Description))
                 ) &&
                 (
                     Category == input.Category ||
                     (Category != null &&
                      Category.Equals(input.Category))
                 ) &&
                 (
                     Listed == input.Listed ||
                     (Listed != null &&
                      Listed.Equals(input.Listed))
                 ) &&
                 (
                     SupportedBridgeTypeUIDs == input.SupportedBridgeTypeUIDs ||
                     SupportedBridgeTypeUIDs != null &&
                     SupportedBridgeTypeUIDs.SequenceEqual(input.SupportedBridgeTypeUIDs)
                 ) &&
                 (
                     Bridge == input.Bridge ||
                     (Bridge != null &&
                      Bridge.Equals(input.Bridge))
                 ) &&
                 (
                     Channels == input.Channels ||
                     Channels != null &&
                     Channels.SequenceEqual(input.Channels)
                 ) &&
                 (
                     ChannelGroups == input.ChannelGroups ||
                     ChannelGroups != null &&
                     ChannelGroups.SequenceEqual(input.ChannelGroups)
                 ) &&
                 (
                     ConfigParameters == input.ConfigParameters ||
                     ConfigParameters != null &&
                     ConfigParameters.SequenceEqual(input.ConfigParameters)
                 ) &&
                 (
                     ParameterGroups == input.ParameterGroups ||
                     ParameterGroups != null &&
                     ParameterGroups.SequenceEqual(input.ParameterGroups)
                 ) &&
                 (
                     Properties == input.Properties ||
                     Properties != null &&
                     Properties.SequenceEqual(input.Properties)
                 ) &&
                 (
                     ExtensibleChannelTypeIds == input.ExtensibleChannelTypeIds ||
                     ExtensibleChannelTypeIds != null &&
                     ExtensibleChannelTypeIds.SequenceEqual(input.ExtensibleChannelTypeIds)
                 ));
        }