-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.go
56 lines (49 loc) · 2.26 KB
/
schema.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
// Package implementing applink, documented here: http://applinks.org/documentation/
package applink
type Ios struct {
Url string `json:"url" ogtag:"al:ios:url"`
// The only evidence i have that this is a string is here:
// https://github.com/BoltsFramework/Bolts-iOS/blob/b72d5f2d6e0c418beea0a48da540a9eaf0768c0b/Bolts/iOS/BFAppLinkTarget.h#L28
AppStoreId string `json:"app_store_id,omitempty" ogtag:"al:ios:app_store_id"`
AppName string `json:"app_name,omitempty" ogtag:"al:ios:app_name"`
}
type Iphone struct {
Url string `json:"url" ogtag:"al:iphone:url"`
// The only evidence i have that this is a string is here:
// https://github.com/BoltsFramework/Bolts-iOS/blob/b72d5f2d6e0c418beea0a48da540a9eaf0768c0b/Bolts/iOS/BFAppLinkTarget.h#L28
AppStoreId string `json:"app_store_id,omitempty" ogtag:"al:iphone:app_store_id"`
AppName string `json:"app_name,omitempty" ogtag:"al:iphone:app_name"`
}
type Ipad struct {
Url string `json:"url" ogtag:"al:ipad:url"`
// The only evidence i have that this is a string is here:
// https://github.com/BoltsFramework/Bolts-iOS/blob/b72d5f2d6e0c418beea0a48da540a9eaf0768c0b/Bolts/iOS/BFAppLinkTarget.h#L28
AppStoreId string `json:"app_store_id,omitempty" ogtag:"al:ipad:app_store_id"`
AppName string `json:"app_name,omitempty" ogtag:"al:ipad:app_name"`
}
type Android struct {
Url string `json:"url,omitempty" ogtag:"al:android:url"`
Package string `json:"package,omitempty"`
Class string `json:"class,omitempty"`
AppName string `json:"app_name,omitempty"`
}
type Windows struct {
Url string `json:"url"`
AppId string `json:"app_id,omitempty"`
AppName string `json:"app_name,omitempty"`
}
type Web struct {
Url string `json:"url,omitempty"`
ShouldFallback bool `json:"should_fallback,omitempty"`
}
type AppLink struct {
Ios *Ios `json:"ios,omitempty" ogtag:",fill"`
Iphone *Iphone `json:"iphone,omitempty" ogtag:",fill"`
Ipad *Ipad `json:"ipad,omitempty" ogtag:",fill"`
Android *Android `json:"android,omitempty" ogtag:",fill"`
// TODO: Windows/web support
WindowsPhone *Windows `json:"windows_phone,omitempty"`
Windows *Windows `json:"windows,omitempty"`
WindowsUniversal *Windows `json:"windows_universal,omitempty"`
Web *Web `json:"web,omitempty"`
}