public override int GetHashCode()
        {
            int hash = 1;

            if (SdkInstanceId.Length != 0)
            {
                hash ^= SdkInstanceId.GetHashCode();
            }
            if (SdkSessionId.Length != 0)
            {
                hash ^= SdkSessionId.GetHashCode();
            }
            if (ArcoreSdkVersion.Length != 0)
            {
                hash ^= ArcoreSdkVersion.GetHashCode();
            }
            if (SdkType != 0)
            {
                hash ^= SdkType.GetHashCode();
            }
            if (OsVersion.Length != 0)
            {
                hash ^= OsVersion.GetHashCode();
            }
            if (engineCase_ == EngineOneofCase.Unity)
            {
                hash ^= Unity.GetHashCode();
            }
            hash ^= (int)engineCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SdkInstanceId.Length != 0)
            {
                hash ^= SdkInstanceId.GetHashCode();
            }
            if (ArcoreSdkVersion.Length != 0)
            {
                hash ^= ArcoreSdkVersion.GetHashCode();
            }
            if (OsVersion.Length != 0)
            {
                hash ^= OsVersion.GetHashCode();
            }
            if (unity_ != null)
            {
                hash ^= Unity.GetHashCode();
            }
            if (SdkSessionId.Length != 0)
            {
                hash ^= SdkSessionId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (OsVersion != null ? OsVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Manufacturer != null ? Manufacturer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Model != null ? Model.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Raw.Length != 0)
            {
                hash ^= Raw.GetHashCode();
            }
            if (Platform.Length != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (Os.Length != 0)
            {
                hash ^= Os.GetHashCode();
            }
            if (OsVersion.Length != 0)
            {
                hash ^= OsVersion.GetHashCode();
            }
            if (Engine.Length != 0)
            {
                hash ^= Engine.GetHashCode();
            }
            if (EngineVersion.Length != 0)
            {
                hash ^= EngineVersion.GetHashCode();
            }
            if (Browser.Length != 0)
            {
                hash ^= Browser.GetHashCode();
            }
            if (BrowserVersion.Length != 0)
            {
                hash ^= BrowserVersion.GetHashCode();
            }
            if (Localization.Length != 0)
            {
                hash ^= Localization.GetHashCode();
            }
            if (Mobile != false)
            {
                hash ^= Mobile.GetHashCode();
            }
            if (WalletCompatible != false)
            {
                hash ^= WalletCompatible.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #5
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);
        }
Example #6
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);
        }