Documentation
¶
Overview ¶
Package systemproperties is a generated SystemProperties package.
Index ¶
- Constants
- type AddAccountXArgs
- type AddAccountXResponse
- type AddOAuthAccountXArgs
- type AddOAuthAccountXResponse
- type CustomerID
- type DoPostUpdateTasksArgs
- type DoPostUpdateTasksResponse
- type EditAccountMdArgs
- type EditAccountMdResponse
- type EditAccountPasswordXArgs
- type EditAccountPasswordXResponse
- type EnableRDMArgs
- type EnableRDMResponse
- type GetRDMArgs
- type GetRDMResponse
- type GetStringArgs
- type GetStringResponse
- type GetWebCodeArgs
- type GetWebCodeResponse
- type Property
- type ProvisionCredentialedTrialAccountXArgs
- type ProvisionCredentialedTrialAccountXResponse
- type RefreshAccountCredentialsXArgs
- type RefreshAccountCredentialsXResponse
- type RemoveAccountArgs
- type RemoveAccountResponse
- type RemoveArgs
- type RemoveResponse
- type ReplaceAccountXArgs
- type ReplaceAccountXResponse
- type ResetThirdPartyCredentialsArgs
- type ResetThirdPartyCredentialsResponse
- type Service
- func (s *Service) AddAccountX(args *AddAccountXArgs) (*AddAccountXResponse, error)
- func (s *Service) AddOAuthAccountX(args *AddOAuthAccountXArgs) (*AddOAuthAccountXResponse, error)
- func (s *Service) Client() *http.Client
- func (s *Service) ControlEndpoint() *url.URL
- func (s *Service) DoPostUpdateTasks(args *DoPostUpdateTasksArgs) (*DoPostUpdateTasksResponse, error)
- func (s *Service) EditAccountMd(args *EditAccountMdArgs) (*EditAccountMdResponse, error)
- func (s *Service) EditAccountPasswordX(args *EditAccountPasswordXArgs) (*EditAccountPasswordXResponse, error)
- func (s *Service) EnableRDM(args *EnableRDMArgs) (*EnableRDMResponse, error)
- func (s *Service) EventEndpoint() *url.URL
- func (s *Service) GetRDM(args *GetRDMArgs) (*GetRDMResponse, error)
- func (s *Service) GetString(args *GetStringArgs) (*GetStringResponse, error)
- func (s *Service) GetWebCode(args *GetWebCodeArgs) (*GetWebCodeResponse, error)
- func (s *Service) Location() *url.URL
- func (zp *Service) ParseEvent(body []byte) []interface{}
- func (s *Service) ProvisionCredentialedTrialAccountX(args *ProvisionCredentialedTrialAccountXArgs) (*ProvisionCredentialedTrialAccountXResponse, error)
- func (s *Service) RefreshAccountCredentialsX(args *RefreshAccountCredentialsXArgs) (*RefreshAccountCredentialsXResponse, error)
- func (s *Service) Remove(args *RemoveArgs) (*RemoveResponse, error)
- func (s *Service) RemoveAccount(args *RemoveAccountArgs) (*RemoveAccountResponse, error)
- func (s *Service) ReplaceAccountX(args *ReplaceAccountXArgs) (*ReplaceAccountXResponse, error)
- func (s *Service) ResetThirdPartyCredentials(args *ResetThirdPartyCredentialsArgs) (*ResetThirdPartyCredentialsResponse, error)
- func (s *Service) SetAccountNicknameX(args *SetAccountNicknameXArgs) (*SetAccountNicknameXResponse, error)
- func (s *Service) SetString(args *SetStringArgs) (*SetStringResponse, error)
- type ServiceOption
- type SetAccountNicknameXArgs
- type SetAccountNicknameXResponse
- type SetStringArgs
- type SetStringResponse
- type ThirdPartyHash
- type UpdateID
- type UpdateIDX
- type UpnpEvent
- type VoiceUpdateID
Constants ¶
const ( ServiceURN = "urn:schemas-upnp-org:service:SystemProperties:1" EncodingSchema = "http://schemas.xmlsoap.org/soap/encoding/" EnvelopeSchema = "http://schemas.xmlsoap.org/soap/envelope/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAccountXArgs ¶
type AddAccountXArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
AccountID string `xml:"AccountID"`
AccountPassword string `xml:"AccountPassword"`
}
AddAccountX Argument type.
type AddAccountXResponse ¶
type AddAccountXResponse struct {
AccountUDN string `xml:"AccountUDN"`
}
AddAccountX Response type.
type AddOAuthAccountXArgs ¶
type AddOAuthAccountXArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
AccountToken string `xml:"AccountToken"`
AccountKey string `xml:"AccountKey"`
OAuthDeviceID string `xml:"OAuthDeviceID"`
AuthorizationCode string `xml:"AuthorizationCode"`
RedirectURI string `xml:"RedirectURI"`
UserIdHashCode string `xml:"UserIdHashCode"`
AccountTier uint32 `xml:"AccountTier"`
}
AddOAuthAccountX Argument type.
type AddOAuthAccountXResponse ¶
type AddOAuthAccountXResponse struct {
AccountUDN string `xml:"AccountUDN"`
AccountNickname string `xml:"AccountNickname"`
}
AddOAuthAccountX Response type.
type DoPostUpdateTasksArgs ¶
type DoPostUpdateTasksArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
DoPostUpdateTasks Argument type.
type DoPostUpdateTasksResponse ¶
type DoPostUpdateTasksResponse struct {
}
DoPostUpdateTasks Response type.
type EditAccountMdArgs ¶
type EditAccountMdArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
AccountID string `xml:"AccountID"`
NewAccountMd string `xml:"NewAccountMd"`
}
EditAccountMd Argument type.
type EditAccountPasswordXArgs ¶
type EditAccountPasswordXArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
AccountID string `xml:"AccountID"`
NewAccountPassword string `xml:"NewAccountPassword"`
}
EditAccountPasswordX Argument type.
type EditAccountPasswordXResponse ¶
type EditAccountPasswordXResponse struct {
}
EditAccountPasswordX Response type.
type EnableRDMArgs ¶
EnableRDM Argument type.
type GetRDMArgs ¶
type GetRDMArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
GetRDM Argument type.
type GetRDMResponse ¶
type GetRDMResponse struct {
RDMValue bool `xml:"RDMValue"`
}
GetRDM Response type.
type GetStringArgs ¶
type GetStringArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
VariableName string `xml:"VariableName"`
}
GetString Argument type.
type GetStringResponse ¶
type GetStringResponse struct {
StringValue string `xml:"StringValue"`
}
GetString Response type.
type GetWebCodeArgs ¶
type GetWebCodeArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
}
GetWebCode Argument type.
type GetWebCodeResponse ¶
type GetWebCodeResponse struct {
WebCode string `xml:"WebCode"`
}
GetWebCode Response type.
type Property ¶
type Property struct {
XMLName xml.Name `xml:"property"`
CustomerID *CustomerID `xml:"CustomerID"`
UpdateID *UpdateID `xml:"UpdateID"`
UpdateIDX *UpdateIDX `xml:"UpdateIDX"`
VoiceUpdateID *VoiceUpdateID `xml:"VoiceUpdateID"`
ThirdPartyHash *ThirdPartyHash `xml:"ThirdPartyHash"`
}
Property represents a single property in a UPnP event notification.
type ProvisionCredentialedTrialAccountXArgs ¶
type ProvisionCredentialedTrialAccountXArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
AccountID string `xml:"AccountID"`
AccountPassword string `xml:"AccountPassword"`
}
ProvisionCredentialedTrialAccountX Argument type.
type ProvisionCredentialedTrialAccountXResponse ¶
type ProvisionCredentialedTrialAccountXResponse struct {
IsExpired bool `xml:"IsExpired"`
AccountUDN string `xml:"AccountUDN"`
}
ProvisionCredentialedTrialAccountX Response type.
type RefreshAccountCredentialsXArgs ¶
type RefreshAccountCredentialsXArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
AccountUID uint32 `xml:"AccountUID"`
AccountToken string `xml:"AccountToken"`
AccountKey string `xml:"AccountKey"`
}
RefreshAccountCredentialsX Argument type.
type RefreshAccountCredentialsXResponse ¶
type RefreshAccountCredentialsXResponse struct {
}
RefreshAccountCredentialsX Response type.
type RemoveAccountArgs ¶
type RemoveAccountArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountType uint32 `xml:"AccountType"`
AccountID string `xml:"AccountID"`
}
RemoveAccount Argument type.
type RemoveArgs ¶
type RemoveArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
VariableName string `xml:"VariableName"`
}
Remove Argument type.
type ReplaceAccountXArgs ¶
type ReplaceAccountXArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountUDN string `xml:"AccountUDN"`
NewAccountID string `xml:"NewAccountID"`
NewAccountPassword string `xml:"NewAccountPassword"`
AccountToken string `xml:"AccountToken"`
AccountKey string `xml:"AccountKey"`
OAuthDeviceID string `xml:"OAuthDeviceID"`
}
ReplaceAccountX Argument type.
type ReplaceAccountXResponse ¶
type ReplaceAccountXResponse struct {
NewAccountUDN string `xml:"NewAccountUDN"`
}
ReplaceAccountX Response type.
type ResetThirdPartyCredentialsArgs ¶
type ResetThirdPartyCredentialsArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
ResetThirdPartyCredentials Argument type.
type ResetThirdPartyCredentialsResponse ¶
type ResetThirdPartyCredentialsResponse struct {
}
ResetThirdPartyCredentials Response type.
type Service ¶
type Service struct {
CustomerID *CustomerID
UpdateID *UpdateID
UpdateIDX *UpdateIDX
VoiceUpdateID *VoiceUpdateID
ThirdPartyHash *ThirdPartyHash
// contains filtered or unexported fields
}
Service represents SystemProperties service.
func NewService ¶
func NewService(opts ...ServiceOption) *Service
NewService creates a new instance of the SystemProperties service. You must provide at least a location URL and an HTTP client using the options.
func (*Service) AddAccountX ¶
func (s *Service) AddAccountX(args *AddAccountXArgs) (*AddAccountXResponse, error)
AddAccountX calls the AddAccountX action on the service.
func (*Service) AddOAuthAccountX ¶
func (s *Service) AddOAuthAccountX(args *AddOAuthAccountXArgs) (*AddOAuthAccountXResponse, error)
AddOAuthAccountX calls the AddOAuthAccountX action on the service.
func (*Service) ControlEndpoint ¶
ControlEndpoint returns the control endpoint URL of the service. This is usually a URL relative to the device's base URL.
func (*Service) DoPostUpdateTasks ¶
func (s *Service) DoPostUpdateTasks(args *DoPostUpdateTasksArgs) (*DoPostUpdateTasksResponse, error)
DoPostUpdateTasks calls the DoPostUpdateTasks action on the service.
func (*Service) EditAccountMd ¶
func (s *Service) EditAccountMd(args *EditAccountMdArgs) (*EditAccountMdResponse, error)
EditAccountMd calls the EditAccountMd action on the service.
func (*Service) EditAccountPasswordX ¶
func (s *Service) EditAccountPasswordX(args *EditAccountPasswordXArgs) (*EditAccountPasswordXResponse, error)
EditAccountPasswordX calls the EditAccountPasswordX action on the service.
func (*Service) EnableRDM ¶
func (s *Service) EnableRDM(args *EnableRDMArgs) (*EnableRDMResponse, error)
EnableRDM calls the EnableRDM action on the service.
func (*Service) EventEndpoint ¶
EventEndpoint returns the event endpoint URL of the service. This is usually a URL relative to the device's base URL.
func (*Service) GetRDM ¶
func (s *Service) GetRDM(args *GetRDMArgs) (*GetRDMResponse, error)
GetRDM calls the GetRDM action on the service.
func (*Service) GetString ¶
func (s *Service) GetString(args *GetStringArgs) (*GetStringResponse, error)
GetString calls the GetString action on the service.
func (*Service) GetWebCode ¶
func (s *Service) GetWebCode(args *GetWebCodeArgs) (*GetWebCodeResponse, error)
GetWebCode calls the GetWebCode action on the service.
func (*Service) ParseEvent ¶
ParseEvent parses a UPnP event notification and updates the service's state variables accordingly. It returns a slice of updated state variable values.
func (*Service) ProvisionCredentialedTrialAccountX ¶
func (s *Service) ProvisionCredentialedTrialAccountX(args *ProvisionCredentialedTrialAccountXArgs) (*ProvisionCredentialedTrialAccountXResponse, error)
ProvisionCredentialedTrialAccountX calls the ProvisionCredentialedTrialAccountX action on the service.
func (*Service) RefreshAccountCredentialsX ¶
func (s *Service) RefreshAccountCredentialsX(args *RefreshAccountCredentialsXArgs) (*RefreshAccountCredentialsXResponse, error)
RefreshAccountCredentialsX calls the RefreshAccountCredentialsX action on the service.
func (*Service) Remove ¶
func (s *Service) Remove(args *RemoveArgs) (*RemoveResponse, error)
Remove calls the Remove action on the service.
func (*Service) RemoveAccount ¶
func (s *Service) RemoveAccount(args *RemoveAccountArgs) (*RemoveAccountResponse, error)
RemoveAccount calls the RemoveAccount action on the service.
func (*Service) ReplaceAccountX ¶
func (s *Service) ReplaceAccountX(args *ReplaceAccountXArgs) (*ReplaceAccountXResponse, error)
ReplaceAccountX calls the ReplaceAccountX action on the service.
func (*Service) ResetThirdPartyCredentials ¶
func (s *Service) ResetThirdPartyCredentials(args *ResetThirdPartyCredentialsArgs) (*ResetThirdPartyCredentialsResponse, error)
ResetThirdPartyCredentials calls the ResetThirdPartyCredentials action on the service.
func (*Service) SetAccountNicknameX ¶
func (s *Service) SetAccountNicknameX(args *SetAccountNicknameXArgs) (*SetAccountNicknameXResponse, error)
SetAccountNicknameX calls the SetAccountNicknameX action on the service.
func (*Service) SetString ¶
func (s *Service) SetString(args *SetStringArgs) (*SetStringResponse, error)
SetString calls the SetString action on the service.
type ServiceOption ¶
type ServiceOption func(*Service)
func WithClient ¶
func WithClient(c *http.Client) ServiceOption
func WithLocation ¶
func WithLocation(u *url.URL) ServiceOption
type SetAccountNicknameXArgs ¶
type SetAccountNicknameXArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
AccountUDN string `xml:"AccountUDN"`
AccountNickname string `xml:"AccountNickname"`
}
SetAccountNicknameX Argument type.
type SetAccountNicknameXResponse ¶
type SetAccountNicknameXResponse struct {
}
SetAccountNicknameX Response type.
type SetStringArgs ¶
type SetStringArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
VariableName string `xml:"VariableName"`
StringValue string `xml:"StringValue"`
}
SetString Argument type.
type ThirdPartyHash ¶
type ThirdPartyHash string
type UpnpEvent ¶
type UpnpEvent struct {
XMLName xml.Name `xml:"propertyset"`
XMLNameSpace string `xml:"xmlns:e,attr"`
Properties []Property `xml:"property"`
}
UpnpEvent represents a UPnP event notification.
type VoiceUpdateID ¶
type VoiceUpdateID uint32