-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathphone.go
More file actions
20 lines (17 loc) · 779 Bytes
/
phone.go
File metadata and controls
20 lines (17 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package httpsms
import "time"
// Phone represents a phone registered in the httpSMS API
type Phone struct {
ID string `json:"id"`
UserID string `json:"user_id"`
PhoneNumber string `json:"phone_number"`
FcmToken *string `json:"fcm_token"`
MessagesPerMinute uint `json:"messages_per_minute"`
MaxSendAttempts uint `json:"max_send_attempts"`
MessageExpirationSeconds uint `json:"message_expiration_seconds"`
SIM string `json:"sim"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// PhoneResponse is the response gotten with a phone
type PhoneResponse ApiResponse[Phone]