object DeviceClass extends ThriftEnumObject[DeviceClass] with Product with Serializable
This class is designed to match the DeviceClass returned from our user agent parsing library yauaa (see https://github.com/nielsbasjes/yauaa/blob/0fb59d61f5de6d9e77d7e78e1c5b153bdc6ed2aa/analyzer/src/main/java/nl/basjes/parse/useragent/classify/DeviceClass.java#L20). Values added to this class should reflect what is in the yauaa class, we should not pollute it with values which do not represent devices like the GUARDIAN_ANDROID_NATIVE_APP found in ua.thrift
- Annotations
- @Generated()
- Alphabetic
- By Inheritance
- DeviceClass
- Serializable
- Serializable
- Product
- Equals
- ThriftEnumObject
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class EnumUnknownDeviceClass(value: Int) extends DeviceClass with EnumItemUnknown with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val annotations: Map[String, String]
-
def
apply(value: Int): DeviceClass
Find the enum by its integer value, as defined in the Thrift IDL.
Find the enum by its integer value, as defined in the Thrift IDL.
- Definition Classes
- DeviceClass → ThriftEnumObject
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(value: Int): Option[DeviceClass]
Find the enum by its integer value, as defined in the Thrift IDL.
Find the enum by its integer value, as defined in the Thrift IDL. Returns None if the value is not found
- Definition Classes
- DeviceClass → ThriftEnumObject
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrUnknown(value: Int): DeviceClass
Find the enum by its integer value, as defined in the Thrift IDL.
Find the enum by its integer value, as defined in the Thrift IDL. returns an EnumUnknownDeviceClass(value) if the value is not found. In particular this allows ignoring new values added to an enum in the IDL on the producer side when the consumer was not updated.
- Definition Classes
- DeviceClass → ThriftEnumObject
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
list: List[DeviceClass]
- Definition Classes
- DeviceClass → ThriftEnumObject
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
valueOf(name: String): Option[DeviceClass]
- Definition Classes
- DeviceClass → ThriftEnumObject
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
Anonymized extends DeviceClass with Product with Serializable
In some cases the useragent has been altered by anonimization software.
-
object
Desktop extends DeviceClass with Product with Serializable
The device is assessed as a Desktop/Laptop class device.
-
object
Mobile extends DeviceClass with Product with Serializable
A device that is mobile yet we do not know if it is a eReader/Tablet/Phone or Watch.
-
object
Phone extends DeviceClass with Product with Serializable
A mobile device with a small screen (common < 7").
-
object
Tablet extends DeviceClass with Product with Serializable
A mobile device with a rather large screen (common > 7").