-
Notifications
You must be signed in to change notification settings - Fork 0
/
wire.go
71 lines (63 loc) · 2.95 KB
/
wire.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package appmetrica
type Application struct {
APIKey128 string `json:"api_key128,omitempty"`
CreateDate string `json:"create_date,omitempty"`
GDPRAgreementAccepted bool `json:"gdpr_agreement_accepted,omitempty"`
HideAddress bool `json:"hide_address,omitempty"`
ID uint64 `json:"id,omitempty"`
Label string `json:"label,omitempty"`
LabelID uint64 `json:"label_id,omitempty"`
Name string `json:"name,omitempty"`
OwnerLogin string `json:"owner_login,omitempty"`
Permission string `json:"permission,omitempty"`
PermissionDate string `json:"permission_date,omitempty"`
Status string `json:"status,omitempty"`
TimeZoneName string `json:"time_zone_name,omitempty"`
TimeZoneOffset int `json:"time_zone_offset,omitempty"`
UID uint64 `json:"uid,omitempty"`
UseUniversalLinks bool `json:"use_universal_links,omitempty"`
}
type Applications []Application
type Error struct {
Type string `json:"error_type"`
Message string `json:"message"`
}
type Response struct {
Application *Application `json:"application,omitempty"`
Applications []Application `json:"applications,omitempty"`
Errors []Error `json:"errors,omitempty"`
ErrorCode int `json:"code,omitempty"`
ErrorMessage string `json:"message,omitempty"`
}
type ConnectionType int
const (
CT_Unknown ConnectionType = iota
CT_WiFi
CT_Cell
)
type ImportEvent struct {
ApplicationID int `json:"application_id"`
ProfileID string `json:"profile_id"`
DeviceID uint64 `json:"appmetrica_device_id"`
SessionType string `json:"session_type,omitempty"`
IFA string `json:"ios_ifa,omitempty"`
IFV string `json:"ios_ifv,omitempty"`
GoogleAID string `json:"google_aid,omitempty"`
WindowsAID string `json:"windows_aid,omitempty"`
OSName string `json:"os_name,omitempty"`
OSVersion string `json:"os_version,omitempty"`
DeviceManufacturer string `json:"device_manufacturer,omitempty"`
DeviceModel string `json:"device_model,omitempty"`
DeviceType string `json:"device_type,omitempty"`
DeviceLocale string `json:"device_locale,omitempty"`
AppVersionName string `json:"app_version_name,omitempty"`
AppPackageName string `json:"app_package_name,omitempty"`
EventName string `json:"event_name"`
EventJSON interface{} `json:"event_json,omitempty"`
EventTimestamp int64 `json:"event_timestamp"`
ConnectionType string `json:"connection_type,omitempty"`
OperatorName string `json:"operator_name,omitempty"`
MCC int `json:"mcc,omitempty"`
MNC int `json:"mnc,omitempty"`
DeviceIPv6 string `json:"device_ipv6,omitempty"`
}