forked from keybase/go-keybase-chat-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prove_ui.go
86 lines (76 loc) · 2.06 KB
/
prove_ui.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/malware-unicorn/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/prove_ui.avdl
package keybase1
import (
"fmt"
)
type PromptOverwriteType int
const (
PromptOverwriteType_SOCIAL PromptOverwriteType = 0
PromptOverwriteType_SITE PromptOverwriteType = 1
)
func (o PromptOverwriteType) DeepCopy() PromptOverwriteType { return o }
var PromptOverwriteTypeMap = map[string]PromptOverwriteType{
"SOCIAL": 0,
"SITE": 1,
}
var PromptOverwriteTypeRevMap = map[PromptOverwriteType]string{
0: "SOCIAL",
1: "SITE",
}
func (e PromptOverwriteType) String() string {
if v, ok := PromptOverwriteTypeRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type ProveParameters struct {
LogoFull []SizedImage `codec:"logoFull" json:"logoFull"`
LogoBlack []SizedImage `codec:"logoBlack" json:"logoBlack"`
LogoWhite []SizedImage `codec:"logoWhite" json:"logoWhite"`
Title string `codec:"title" json:"title"`
Subtext string `codec:"subtext" json:"subtext"`
Suffix string `codec:"suffix" json:"suffix"`
ButtonLabel string `codec:"buttonLabel" json:"buttonLabel"`
}
func (o ProveParameters) DeepCopy() ProveParameters {
return ProveParameters{
LogoFull: (func(x []SizedImage) []SizedImage {
if x == nil {
return nil
}
ret := make([]SizedImage, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.LogoFull),
LogoBlack: (func(x []SizedImage) []SizedImage {
if x == nil {
return nil
}
ret := make([]SizedImage, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.LogoBlack),
LogoWhite: (func(x []SizedImage) []SizedImage {
if x == nil {
return nil
}
ret := make([]SizedImage, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.LogoWhite),
Title: o.Title,
Subtext: o.Subtext,
Suffix: o.Suffix,
ButtonLabel: o.ButtonLabel,
}
}