35 lines
1.3 KiB
Go
35 lines
1.3 KiB
Go
package model
|
|
|
|
// type : null, pap_chap, pap, chap
|
|
// if type selected, username and password are mandatory
|
|
type ModemAuthentication struct {
|
|
Authentication struct {
|
|
Apn string `json:"apn"`
|
|
Type string `json:"type,omitempty"`
|
|
Username string `json:"username,omitempty"`
|
|
Password string `json:"password,omitempty"`
|
|
} `json:"authentication"`
|
|
}
|
|
|
|
type ModemConfiguration struct {
|
|
AccessTechnology string `json:"access_technology"`
|
|
AllowedModes []string `json:"allowed_modes"`
|
|
AvailableAPNs []string `json:"available_apns,omitempty"`
|
|
CurrentAPN string `json:"current_apn"`
|
|
CurrentMode string `json:"current_mode"`
|
|
FailReason *string `json:"fail_reason,omitempty"`
|
|
IMEI string `json:"imei"`
|
|
InternetAvailable string `json:"internet_available,omitempty"`
|
|
LockReason *string `json:"lock_reason,omitempty"`
|
|
OperatorName string `json:"operator_name"`
|
|
PreferredMode string `json:"preferred_mode"`
|
|
RegistrationState string `json:"registration_state"`
|
|
RSSI int `json:"rssi"`
|
|
State string `json:"state"`
|
|
Stats struct {
|
|
Since string `json:"since"`
|
|
UsageMB string `json:"usage_mb"`
|
|
} `json:"stats"`
|
|
UnlockRetries int `json:"unlock_retries"`
|
|
}
|