-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsms.go
More file actions
39 lines (33 loc) · 718 Bytes
/
sms.go
File metadata and controls
39 lines (33 loc) · 718 Bytes
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
package gosms
// SMS structure with correctly sized message and appropriate UDH
type SMS struct {
from string
to string
content string
udh string
}
// newSMS initializes a new SMS
func newSMS(from string, to string, content string, udh string) SMS {
return SMS{
from: from,
to: to,
content: content,
udh: udh,
}
}
// GetFrom returns the SMS's from field
func (s *SMS) GetFrom() string {
return s.from
}
// GetTo returns the SMS's to field
func (s *SMS) GetTo() string {
return s.to
}
// GetContent returns the SMS's content field
func (s *SMS) GetContent() string {
return s.content
}
// GetUDH returns the SMS's udh field
func (s *SMS) GetUDH() string {
return s.udh
}