@@ -11,12 +11,12 @@ type Device struct {
1111 UA string `json:"ua,omitempty"` // User agent
1212 IP string `json:"ip,omitempty"` // IPv4
1313 Geo * Geo `json:"geo,omitempty"`
14- IDSHA1 string `json:"didSHA1 ,omitempty"` // SHA1 hashed device ID
15- IDMD5 string `json:"didMD5 ,omitempty"` // MD5 hashed device ID
16- PIDSHA1 string `json:"dpidSHA1 ,omitempty"` // SHA1 hashed platform device ID
17- PIDMD5 string `json:"dpidMD5 ,omitempty"` // MD5 hashed platform device ID
18- MacSHA1 string `json:"macSHA1 ,omitempty"` // SHA1 hashed device ID; IMEI when available, else MEID or ESN
19- MacMD5 string `json:"macMD5 ,omitempty"` // MD5 hashed device ID; IMEI when available, else MEID or ESN
14+ IDSHA1 string `json:"didsha1 ,omitempty"` // SHA1 hashed device ID
15+ IDMD5 string `json:"didmd5 ,omitempty"` // MD5 hashed device ID
16+ PIDSHA1 string `json:"dpidsha1 ,omitempty"` // SHA1 hashed platform device ID
17+ PIDMD5 string `json:"dpidmd5 ,omitempty"` // MD5 hashed platform device ID
18+ MacSHA1 string `json:"macsha1 ,omitempty"` // SHA1 hashed device ID; IMEI when available, else MEID or ESN
19+ MacMD5 string `json:"macmd5 ,omitempty"` // MD5 hashed device ID; IMEI when available, else MEID or ESN
2020 IPv6 string `json:"ipv6,omitempty"` // IPv6
2121 Carrier string `json:"carrier,omitempty"` // Carrier or ISP derived from the IP address
2222 Language string `json:"language,omitempty"` // Browser language
@@ -30,4 +30,9 @@ type Device struct {
3030 FlashVer string `json:"flashver,omitempty"` // Flash version
3131 IFA string `json:"ifa,omitempty"` // Native identifier for advertisers
3232 Ext json.RawMessage `json:"ext,omitempty"`
33+ H int `json:"h,omitempty"` // Physical height of the screen in pixels.
34+ W int `json:"w,omitempty"` // Physical width of the screen in pixels.
35+ PPI int `json:"ppi,omitempty"` // Screen size as pixels per linear inch.
36+ PxRatio float64 `json:"pxratio,omitempty"` // The ratio of physical pixels to device independent pixels.
37+ HwVer string `json:"hwv,omitempty"` // Hardware version of the device (e.g., "5S" for iPhone 5S).
3338}
0 commit comments