All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.google.security.cryptauth.lib.securegcm.AppleDeviceDiagonalMils.kt Maven / Gradle / Ivy

// Code generated by Wire protocol buffer compiler, do not edit.
// Source: securegcm.AppleDeviceDiagonalMils in securegcm.proto
package com.google.security.cryptauth.lib.securegcm

import com.squareup.wire.EnumAdapter
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.Syntax.PROTO_2
import com.squareup.wire.WireEnum
import kotlin.Int

/**
 * This enum is used by iOS devices as values for device_display_diagonal_mils
 * in GcmDeviceInfo. There is no good way to calculate it on those devices.
 */
public enum class AppleDeviceDiagonalMils(
  public override val `value`: Int,
) : WireEnum {
  /**
   * This is the mils diagonal on an iPhone 5.
   */
  APPLE_PHONE(4000),
  /**
   * This is the mils diagonal on an iPad mini.
   */
  APPLE_PAD(7900),
  ;

  public companion object {
    public val ADAPTER: ProtoAdapter = object :
        EnumAdapter(
      AppleDeviceDiagonalMils::class, 
      PROTO_2, 
      null
    ) {
      public override fun fromValue(`value`: Int): AppleDeviceDiagonalMils? =
          AppleDeviceDiagonalMils.fromValue(value)
    }

    public fun fromValue(`value`: Int): AppleDeviceDiagonalMils? = when (value) {
      4000 -> APPLE_PHONE
      7900 -> APPLE_PAD
      else -> null
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy