/// <summary>
        /// Returns true if objects are equal
        /// </summary>
        public bool Equals(DeviceMessageRequest input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     this.MessageId == input.MessageId ||
                     (this.MessageId != null &&
                      this.MessageId.Equals(input.MessageId))
                     ) &&
                 (
                     this.Name == input.Name ||
                     (this.Name != null &&
                      this.Name.Equals(input.Name))
                 ) &&
                 (
                     this.Message == input.Message ||
                     (this.Message != null &&
                      this.Message.Equals(input.Message))
                 ) &&
                 (
                     this.Topic == input.Topic ||
                     (this.Topic != null &&
                      this.Topic.Equals(input.Topic))
                 ));
        }
예제 #2
0
        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        public bool Equals(DeviceMessageRequest input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     this.MessageId == input.MessageId ||
                     (this.MessageId != null &&
                      this.MessageId.Equals(input.MessageId))
                     ) &&
                 (
                     this.Name == input.Name ||
                     (this.Name != null &&
                      this.Name.Equals(input.Name))
                 ) &&
                 (
                     this.Message == input.Message ||
                     (this.Message != null &&
                      this.Message.Equals(input.Message))
                 ) &&
                 (
                     this.Encoding == input.Encoding ||
                     (this.Encoding != null &&
                      this.Encoding.Equals(input.Encoding))
                 ) &&
                 (
                     this.PayloadFormat == input.PayloadFormat ||
                     (this.PayloadFormat != null &&
                      this.PayloadFormat.Equals(input.PayloadFormat))
                 ) &&
                 (
                     this.Topic == input.Topic ||
                     (this.Topic != null &&
                      this.Topic.Equals(input.Topic))
                 ) &&
                 (
                     this.TopicFullName == input.TopicFullName ||
                     (this.TopicFullName != null &&
                      this.TopicFullName.Equals(input.TopicFullName))
                 ));
        }