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

            if (Platform != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (DeviceManufacturer.Length != 0)
            {
                hash ^= DeviceManufacturer.GetHashCode();
            }
            if (DeviceModel.Length != 0)
            {
                hash ^= DeviceModel.GetHashCode();
            }
            if (Locale.Length != 0)
            {
                hash ^= Locale.GetHashCode();
            }
            if (AppVersion != 0)
            {
                hash ^= AppVersion.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            var s = 1;

            if (Addresses != null)
            {
                foreach (var a in Addresses)
                {
                    s += a.GetHashCode();
                }
            }
            s += (DeviceName?.GetHashCode() + DeviceModel?.GetHashCode()) ?? 0;
            return(s);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlatformType != global::AcFunDanmu.DeviceInfo.Types.PlatformType.KInvalid)
            {
                hash ^= PlatformType.GetHashCode();
            }
            if (OsVersion.Length != 0)
            {
                hash ^= OsVersion.GetHashCode();
            }
            if (DeviceModel.Length != 0)
            {
                hash ^= DeviceModel.GetHashCode();
            }
            if (ImeiMd5.Length != 0)
            {
                hash ^= ImeiMd5.GetHashCode();
            }
            if (DeviceId.Length != 0)
            {
                hash ^= DeviceId.GetHashCode();
            }
            if (SoftDid.Length != 0)
            {
                hash ^= SoftDid.GetHashCode();
            }
            if (KwaiDid.Length != 0)
            {
                hash ^= KwaiDid.GetHashCode();
            }
            if (Manufacturer.Length != 0)
            {
                hash ^= Manufacturer.GetHashCode();
            }
            if (DeviceName.Length != 0)
            {
                hash ^= DeviceName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TargetEnvId.Length != 0)
            {
                hash ^= TargetEnvId.GetHashCode();
            }
            if (ClientVersion.Length != 0)
            {
                hash ^= ClientVersion.GetHashCode();
            }
            if (ClientOs != 0)
            {
                hash ^= ClientOs.GetHashCode();
            }
            if (OsVersion.Length != 0)
            {
                hash ^= OsVersion.GetHashCode();
            }
            if (DeviceModel.Length != 0)
            {
                hash ^= DeviceModel.GetHashCode();
            }
            if (deviceInfoCase_ == DeviceInfoOneofCase.IosDeviceInfo)
            {
                hash ^= IosDeviceInfo.GetHashCode();
            }
            if (deviceInfoCase_ == DeviceInfoOneofCase.AndroidDeviceInfo)
            {
                hash ^= AndroidDeviceInfo.GetHashCode();
            }
            if (BuildNumber.Length != 0)
            {
                hash ^= BuildNumber.GetHashCode();
            }
            hash ^= (int)deviceInfoCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Platform != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (DeviceManufacturer.Length != 0)
            {
                hash ^= DeviceManufacturer.GetHashCode();
            }
            if (DeviceModel.Length != 0)
            {
                hash ^= DeviceModel.GetHashCode();
            }
            if (Locale.Length != 0)
            {
                hash ^= Locale.GetHashCode();
            }
            if (AppVersion != 0)
            {
                hash ^= AppVersion.GetHashCode();
            }
            if (Paginate != false)
            {
                hash ^= Paginate.GetHashCode();
            }
            if (PageOffset != 0)
            {
                hash ^= PageOffset.GetHashCode();
            }
            if (PageTimestamp != 0UL)
            {
                hash ^= PageTimestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (LoginType != 0)
            {
                hash ^= LoginType.GetHashCode();
            }
            if (AppVersion.Length != 0)
            {
                hash ^= AppVersion.GetHashCode();
            }
            if (AppStore.Length != 0)
            {
                hash ^= AppStore.GetHashCode();
            }
            if (DeviceModel.Length != 0)
            {
                hash ^= DeviceModel.GetHashCode();
            }
            if (DeviceCountry.Length != 0)
            {
                hash ^= DeviceCountry.GetHashCode();
            }
            if (DeviceLanguage.Length != 0)
            {
                hash ^= DeviceLanguage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }