forked from leoht/aircall
-
Notifications
You must be signed in to change notification settings - Fork 1
/
messages.go
89 lines (71 loc) · 1.71 KB
/
messages.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
87
88
89
package aircall
type Request struct{}
type TransferCallRequest struct {
UserID int `json:"user_id"`
}
type LinkCallRequest struct {
Link string `json:"link"`
}
type Paginate struct {
Page int
PerPage int
Order string
From int
To int
}
type Search struct {
PhoneNumber string
Email string
}
type ContactRequest struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
CompanyName string `json:"company_name"`
Information string `json:"information"`
PhoneNumbers []ContactInfo `json:"phone_numbers"`
Emails []ContactInfo `json:"emails"`
}
type Response struct {
}
type ResponseMeta struct {
Count int `json:"count"`
Total int `json:"total"`
CurrentPage int `json:"current_page"`
PerPage int `json:"per_page"`
NextPageLink string `json:"next_page_link"`
PreviousPageLink string `json:"previous_page_link"`
}
type PingResponse struct {
Ping string `json:"ping"`
}
type CompanyResponse struct {
Company Company `json:"company"`
}
type UsersResponse struct {
Meta ResponseMeta `json:"meta"`
Users []User `json:"users"`
}
type UserResponse struct {
User User `json:"user"`
}
type NumbersResponse struct {
Meta ResponseMeta `json:"meta"`
Numbers []Number `json:"numbers"`
}
type NumberResponse struct {
Number Number `json:"number"`
}
type CallsResponse struct {
Meta ResponseMeta `json:"meta"`
Calls []Call `json:"calls"`
}
type CallResponse struct {
Call Call `json:"call"`
}
type ContactsResponse struct {
Meta ResponseMeta `json:"meta"`
Contacts []Contact `json:"contacts"`
}
type ContactResponse struct {
Contact Contact `json:"contact"`
}