-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathaccount.go
83 lines (65 loc) · 2.15 KB
/
account.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
package kavenegar
//AccountService ...
type AccountService struct {
client *Client
}
//NewAccountService ...
func NewAccountService(client *Client) *AccountService {
m := &AccountService{client: client}
return m
}
type AccountAPILogType string
const (
Type_AccountAPILog_Justfaults AccountAPILogType = "justfaults"
Type_AccountAPILog_Enabled AccountAPILogType = "enabled"
Type_AccountAPILog_Disabled AccountAPILogType = "disabled"
)
var AccountAPILogMap = map[AccountAPILogType]string{
Type_AccountAPILog_Justfaults: "justfaults",
Type_AccountAPILog_Enabled: "enabled",
Type_AccountAPILog_Disabled: "disabled",
}
func (t AccountAPILogType) String() string {
return AccountAPILogMap[t]
}
//AccountDailyReport ...
type AccountDailyReportType string
const (
Type_AccountDailyReport_Justfaults AccountDailyReportType = "justfaults"
Type_AccountDailyReport_Enabled AccountDailyReportType = "enabled"
Type_AccountDailyReport_Disabled AccountDailyReportType = "disabled"
)
var AccountDailyReportMap = map[AccountDailyReportType]string{
Type_AccountDailyReport_Justfaults: "justfaults",
Type_AccountDailyReport_Enabled: "enabled",
Type_AccountDailyReport_Disabled: "disabled",
}
func (t AccountDailyReportType) String() string {
return AccountDailyReportMap[t]
}
//AccountDebugMode ...
type AccountDebugModeType string
const (
Type_AccountDebugMode_Enabled AccountDebugModeType = "enabled"
Type_AccountDebugMode_Disabled AccountDebugModeType = "disabled"
)
var AccountDebugModeMap = map[AccountDebugModeType]string{
Type_AccountDebugMode_Enabled: "enabled",
Type_AccountDebugMode_Disabled: "disabled",
}
func (t AccountDebugModeType) String() string {
return AccountDebugModeMap[t]
}
//AccountResendFailed ...
type AccountResendFailedType string
const (
Type_AccountResendFailed_Enabled AccountResendFailedType = "enabled"
Type_AccountResendFailed_Disabled AccountResendFailedType = "disabled"
)
var AccountResendFailedMap = map[AccountResendFailedType]string{
Type_AccountResendFailed_Enabled: "enabled",
Type_AccountResendFailed_Disabled: "disabled",
}
func (t AccountResendFailedType) String() string {
return AccountResendFailedMap[t]
}