in progress
This commit is contained in:
10
response.go
Normal file
10
response.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package smsc
|
||||
|
||||
type Response struct {
|
||||
Error string `json:"error"`
|
||||
ErrorCode int `json:"error_code"`
|
||||
}
|
||||
|
||||
func (s *Response) IsError() bool {
|
||||
return s.Error == ""
|
||||
}
|
||||
Reference in New Issue
Block a user