experiment (#12)
Reviewed-on: #12 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -2,6 +2,8 @@ package models
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
cnfg "git.kundeng.us/phoenix/textsender-models/pkg/config"
|
||||
)
|
||||
|
||||
type Number struct {
|
||||
@@ -38,28 +40,6 @@ func (msg Message) Print() {
|
||||
fmt.Println("Message:", msg.Text)
|
||||
}
|
||||
|
||||
type TwiloDetails struct {
|
||||
AccountSID string `json:"auth_sid"`
|
||||
ServiceSID string `json:"service_sid"`
|
||||
URI string `json:"uri"`
|
||||
AuthToken string `json:"auth_token"`
|
||||
Number string `json:"phone_number"`
|
||||
}
|
||||
|
||||
func (config TwiloDetails) PrintConfig() {
|
||||
fmt.Printf("Account SID: %s\n", config.AccountSID)
|
||||
fmt.Printf("Service SID: %s\n", config.ServiceSID)
|
||||
fmt.Println("URI:", config.URI)
|
||||
fmt.Printf("Auth Token: %s\n", config.AuthToken)
|
||||
fmt.Printf("Number: %s\n", config.Number)
|
||||
}
|
||||
|
||||
func Init() TwiloDetails {
|
||||
return TwiloDetails{
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
}
|
||||
func Init() cnfg.TwiloConfig {
|
||||
return cnfg.TwiloConfig{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user