예제 #1
0
        /// <inheritdoc />
        public override bool Equals(object obj)
        {
            var other = obj as CoapResourceMetadata;

            if (other == null)
            {
                return(false);
            }
            if (UriReference != other.UriReference)
            {
                return(false);
            }
            if (Anchor != other.Anchor)
            {
                return(false);
            }
            if (HrefLang != other.HrefLang)
            {
                return(false);
            }
            if (Media != other.Media)
            {
                return(false);
            }
            if (Title != other.Title)
            {
                return(false);
            }
            if (TitleExt != other.TitleExt)
            {
                return(false);
            }
            if (Type != other.Type)
            {
                return(false);
            }
            if (!Rel.SequenceEqual(other.Rel))
            {
                return(false);
            }
            if (!ResourceTypes.SequenceEqual(other.ResourceTypes))
            {
                return(false);
            }
            if (!InterfaceDescription.SequenceEqual(other.InterfaceDescription))
            {
                return(false);
            }
            if (!SuggestedContentTypes.SequenceEqual(other.SuggestedContentTypes))
            {
                return(false);
            }
            if (MaxSize != other.MaxSize)
            {
                return(false);
            }
            if (!Extentions.SequenceEqual(other.Extentions))
            {
                return(false);
            }
            return(true);
        }