Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode.Length != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (OppositeId.Length != 0)
            {
                hash ^= OppositeId.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (Status.Length != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ServerId?.GetHashCode() ?? 0) * 397) ^ EndTime.GetHashCode());
     }
 }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (OppositeId.Length != 0)
            {
                hash ^= OppositeId.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (ResultCode != 0)
            {
                hash ^= ResultCode.GetHashCode();
            }
            if (TimeToken != 0UL)
            {
                hash ^= TimeToken.GetHashCode();
            }
            if (Memo.Length != 0)
            {
                hash ^= Memo.GetHashCode();
            }
            return(hash);
        }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ZoneId != 0)
            {
                hash ^= ZoneId.GetHashCode();
            }
            if (ZoneName.Length != 0)
            {
                hash ^= ZoneName.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (ServerName.Length != 0)
            {
                hash ^= ServerName.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (UserCount != 0)
            {
                hash ^= UserCount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Code != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (Msg.Length != 0)
            {
                hash ^= Msg.GetHashCode();
            }
            if (ServerId.Length != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (RequestId != 0UL)
            {
                hash ^= RequestId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode.Length != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (OppositeId.Length != 0)
            {
                hash ^= OppositeId.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (LowValue != 0)
            {
                hash ^= LowValue.GetHashCode();
            }
            if (HeighValue != 0)
            {
                hash ^= HeighValue.GetHashCode();
            }
            hash ^= cellAddrs_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode.Length != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (OppositeId.Length != 0)
            {
                hash ^= OppositeId.GetHashCode();
            }
            if (TimeToken.Length != 0)
            {
                hash ^= TimeToken.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            hash ^= lightNo_.GetHashCode();
            hash ^= stage_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (TimeToken.Length != 0)
            {
                hash ^= TimeToken.GetHashCode();
            }
            if (ResultCode != 0)
            {
                hash ^= ResultCode.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (ServerIp.Length != 0)
            {
                hash ^= ServerIp.GetHashCode();
            }
            return(hash);
        }
Example #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode.Length != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (TimeToken.Length != 0)
            {
                hash ^= TimeToken.GetHashCode();
            }
            if (ResultCode != 0)
            {
                hash ^= ResultCode.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (ServerIp.Length != 0)
            {
                hash ^= ServerIp.GetHashCode();
            }
            hash ^= lights_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #10
0
 public override int GetHashCode()
 {
     if (string.IsNullOrWhiteSpace(ServerId))
     {
         return(0);
     }
     return(ServerId.GetHashCode());
 }
Example #11
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Channel.Length != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (ChannelInfo.Length != 0)
            {
                hash ^= ChannelInfo.GetHashCode();
            }
            if (Account.Length != 0)
            {
                hash ^= Account.GetHashCode();
            }
            if (Pwd.Length != 0)
            {
                hash ^= Pwd.GetHashCode();
            }
            if (MobileOs != 0)
            {
                hash ^= MobileOs.GetHashCode();
            }
            if (ClientVersion.Length != 0)
            {
                hash ^= ClientVersion.GetHashCode();
            }
            if (Language != 0)
            {
                hash ^= Language.GetHashCode();
            }
            if (ServerId.Length != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (Mac.Length != 0)
            {
                hash ^= Mac.GetHashCode();
            }
            if (Idfa.Length != 0)
            {
                hash ^= Idfa.GetHashCode();
            }
            if (Driver.Length != 0)
            {
                hash ^= Driver.GetHashCode();
            }
            if (Ts.Length != 0)
            {
                hash ^= Ts.GetHashCode();
            }
            return(hash);
        }
Example #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Channel.Length != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (ServerId.Length != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Addr.Length != 0)
            {
                hash ^= Addr.GetHashCode();
            }
            if (Port != 0)
            {
                hash ^= Port.GetHashCode();
            }
            if (Desc.Length != 0)
            {
                hash ^= Desc.GetHashCode();
            }
            if (Aggregate != 0)
            {
                hash ^= Aggregate.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (Sort != 0)
            {
                hash ^= Sort.GetHashCode();
            }
            if (Ret != 0)
            {
                hash ^= Ret.GetHashCode();
            }
            return(hash);
        }
Example #13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RoleId != 0L)
            {
                hash ^= RoleId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (UserId != 0L)
            {
                hash ^= UserId.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (ServerName.Length != 0)
            {
                hash ^= ServerName.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Sex != 0)
            {
                hash ^= Sex.GetHashCode();
            }
            if (HeadImgId != 0)
            {
                hash ^= HeadImgId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode.Length != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (OppositeId.Length != 0)
            {
                hash ^= OppositeId.GetHashCode();
            }
            if (TimeToken.Length != 0)
            {
                hash ^= TimeToken.GetHashCode();
            }
            if (ResultCode != 0)
            {
                hash ^= ResultCode.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (LightNo.Length != 0)
            {
                hash ^= LightNo.GetHashCode();
            }
            if (WaringCode.Length != 0)
            {
                hash ^= WaringCode.GetHashCode();
            }
            if (WaringDesc.Length != 0)
            {
                hash ^= WaringDesc.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #15
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MsgId != 0UL)
            {
                hash ^= MsgId.GetHashCode();
            }
            if (senderIdCase_ == SenderIdOneofCase.ServerId)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (senderIdCase_ == SenderIdOneofCase.ClientId)
            {
                hash ^= ClientId.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.SystemMsg)
            {
                hash ^= SystemMsg.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.TickMsg)
            {
                hash ^= TickMsg.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.EventMsg)
            {
                hash ^= EventMsg.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.RoomMsg)
            {
                hash ^= RoomMsg.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.UserMngMsg)
            {
                hash ^= UserMngMsg.GetHashCode();
            }
            if (messageTypeCase_ == MessageTypeOneofCase.AppMsg)
            {
                hash ^= AppMsg.GetHashCode();
            }
            hash ^= (int)senderIdCase_;
            hash ^= (int)messageTypeCase_;
            return(hash);
        }
Example #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Game != 0)
            {
                hash ^= Game.GetHashCode();
            }
            if (ServerId.Length != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (Channel.Length != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (Aggregate != 0)
            {
                hash ^= Aggregate.GetHashCode();
            }
            return(hash);
        }
Example #17
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Username.Length != 0)
        {
            hash ^= Username.GetHashCode();
        }
        if (Protocol != 0)
        {
            hash ^= Protocol.GetHashCode();
        }
        if (Client.Length != 0)
        {
            hash ^= Client.GetHashCode();
        }
        if (Uuid.Length != 0)
        {
            hash ^= Uuid.GetHashCode();
        }
        if (Secret.Length != 0)
        {
            hash ^= Secret.GetHashCode();
        }
        if (ServerId.Length != 0)
        {
            hash ^= ServerId.GetHashCode();
        }
        if (ProxySupportedVersion != 0)
        {
            hash ^= ProxySupportedVersion.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Example #18
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ServerName.Length != 0)
            {
                hash ^= ServerName.GetHashCode();
            }
            if (ServerId != 0L)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            if (Port != 0)
            {
                hash ^= Port.GetHashCode();
            }
            if (MaxRoomCount != 0)
            {
                hash ^= MaxRoomCount.GetHashCode();
            }
            if (MaxPlayerPerRoom != 0)
            {
                hash ^= MaxPlayerPerRoom.GetHashCode();
            }
            if (AddressReal.Length != 0)
            {
                hash ^= AddressReal.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #19
0
 public override int GetHashCode()
 {
     return(ServerId.GetHashCode());
     // Using exact id match, not equivalent data
     // return ServerIpAndPort.GetHashCode();
 }
Example #20
0
 public override int GetHashCode()
 {
     return(ServerId.GetHashCode() ^ PlayerId.GetHashCode());
 }