Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != global::Chat.Protocol.ChatResponse.Types.Type.Unknown)
            {
                hash ^= Type.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            hash ^= friends_.GetHashCode();
            if (user_ != null)
            {
                hash ^= User.GetHashCode();
            }
            if (message_ != null)
            {
                hash ^= Message.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            hash ^= friends_.GetHashCode();
            if (user_ != null)
            {
                hash ^= User.GetHashCode();
            }
            if (message_ != null)
            {
                hash ^= Message.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != global::Chat.Protocol.ChatRequest.Types.Type.Unkown)
            {
                hash ^= Type.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.User)
            {
                hash ^= User.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.Message)
            {
                hash ^= Message.GetHashCode();
            }
            hash ^= (int)payloadCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.User)
            {
                hash ^= User.GetHashCode();
            }
            if (payloadCase_ == PayloadOneofCase.Message)
            {
                hash ^= Message.GetHashCode();
            }
            hash ^= (int)payloadCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }