mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-15 06:26:35 +03:00
22 lines
890 B
Go
22 lines
890 B
Go
package openrtb
|
||
|
||
// 5.22 Connection Type
|
||
//
|
||
// Various options for the type of device connectivity.
|
||
type ConnectionType int8
|
||
|
||
const (
|
||
ConnectionTypeUnknown ConnectionType = 0 // Unknown
|
||
ConnectionTypeEthernet ConnectionType = 1 // Ethernet
|
||
ConnectionTypeWIFI ConnectionType = 2 // WIFI
|
||
ConnectionTypeCellularNetworkUnknownGeneration ConnectionType = 3 // Cellular Network – Unknown Generation
|
||
ConnectionTypeCellularNetwork2G ConnectionType = 4 // Cellular Network – 2G
|
||
ConnectionTypeCellularNetwork3G ConnectionType = 5 // Cellular Network – 3G
|
||
ConnectionTypeCellularNetwork4G ConnectionType = 6 // Cellular Network – 4G
|
||
)
|
||
|
||
// PtrConnectionType returns pointer to passed argument.
|
||
func PtrConnectionType(t ConnectionType) *ConnectionType {
|
||
return &t
|
||
}
|