public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.deliveredTime)
            {
                hashcode = (hashcode * 397) + DeliveredTime.GetHashCode();
            }
            if (__isset.messageId)
            {
                hashcode = (hashcode * 397) + MessageId.GetHashCode();
            }
        }
        return(hashcode);
    }
Esempio n. 2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset._from)
            {
                hashcode = (hashcode * 397) + _from.GetHashCode();
            }
            if (__isset.to)
            {
                hashcode = (hashcode * 397) + To.GetHashCode();
            }
            if (__isset.toType)
            {
                hashcode = (hashcode * 397) + ToType.GetHashCode();
            }
            if (__isset.id)
            {
                hashcode = (hashcode * 397) + Id.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.deliveredTime)
            {
                hashcode = (hashcode * 397) + DeliveredTime.GetHashCode();
            }
            if (__isset.text)
            {
                hashcode = (hashcode * 397) + Text.GetHashCode();
            }
            if (__isset.location)
            {
                hashcode = (hashcode * 397) + Location.GetHashCode();
            }
            if (__isset.hasContent)
            {
                hashcode = (hashcode * 397) + HasContent.GetHashCode();
            }
            if (__isset.contentType)
            {
                hashcode = (hashcode * 397) + ContentType.GetHashCode();
            }
            if (__isset.contentPreview)
            {
                hashcode = (hashcode * 397) + ContentPreview.GetHashCode();
            }
            if (__isset.contentMetadata)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(ContentMetadata);
            }
            if (__isset.sessionId)
            {
                hashcode = (hashcode * 397) + SessionId.GetHashCode();
            }
            if (__isset.chunks)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(Chunks);
            }
            if (__isset.relatedMessageId)
            {
                hashcode = (hashcode * 397) + RelatedMessageId.GetHashCode();
            }
            if (__isset.messageRelationType)
            {
                hashcode = (hashcode * 397) + MessageRelationType.GetHashCode();
            }
            if (__isset.readCount)
            {
                hashcode = (hashcode * 397) + ReadCount.GetHashCode();
            }
            if (__isset.relatedMessageServiceCode)
            {
                hashcode = (hashcode * 397) + RelatedMessageServiceCode.GetHashCode();
            }
        }
        return(hashcode);
    }