/// <summary> /// Returns true if ChannelTypeDTO instances are equal /// </summary> /// <param name="input">Instance of ChannelTypeDTO to be compared</param> /// <returns>Boolean</returns> public bool Equals(ChannelTypeDTO input) { if (input == null) { return(false); } return (( Parameters == input.Parameters || Parameters != null && Parameters.SequenceEqual(input.Parameters) ) && ( ParameterGroups == input.ParameterGroups || ParameterGroups != null && ParameterGroups.SequenceEqual(input.ParameterGroups) ) && ( Description == input.Description || (Description != null && Description.Equals(input.Description)) ) && ( Label == input.Label || (Label != null && Label.Equals(input.Label)) ) && ( Category == input.Category || (Category != null && Category.Equals(input.Category)) ) && ( ItemType == input.ItemType || (ItemType != null && ItemType.Equals(input.ItemType)) ) && ( Kind == input.Kind || (Kind != null && Kind.Equals(input.Kind)) ) && ( StateDescription == input.StateDescription || (StateDescription != null && StateDescription.Equals(input.StateDescription)) ) && ( Tags == input.Tags || Tags != null && Tags.SequenceEqual(input.Tags) ) && ( UID == input.UID || (UID != null && UID.Equals(input.UID)) ) && ( Advanced == input.Advanced || (Advanced != null && Advanced.Equals(input.Advanced)) ) && ( CommandDescription == input.CommandDescription || (CommandDescription != null && CommandDescription.Equals(input.CommandDescription)) )); }
/// <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) )); }