-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathrecipient.go
35 lines (31 loc) · 896 Bytes
/
recipient.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
package messagebird
import "time"
// Recipient struct holds information for a single msisdn with status details.
type Recipient struct {
Recipient int64
Status string
StatusDatetime *time.Time
RecipientCountry *string
RecipientCountryPrefix *int
RecipientOperator *string
MessageLength *int
StatusErrorCode *int
StatusReason *string
Price *Price
Mccmnc *string
Mcc *string
Mnc *string
MessagePartCount int
}
type Price struct {
Amount float64
Currency string
}
// Recipients holds a collection of Recepient structs along with send stats.
type Recipients struct {
TotalCount int
TotalSentCount int
TotalDeliveredCount int
TotalDeliveryFailedCount int
Items []Recipient
}