systemproperties

package
v0.0.0-...-d57ea70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package systemproperties is a generated SystemProperties package.

Index

Constants

View Source
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 CustomerID

type CustomerID string

State Variables

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 EditAccountMdResponse

type EditAccountMdResponse struct {
}

EditAccountMd Response 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

type EnableRDMArgs struct {
	Xmlns    string `xml:"xmlns:u,attr"`
	RDMValue bool   `xml:"RDMValue"`
}

EnableRDM Argument type.

type EnableRDMResponse

type EnableRDMResponse struct {
}

EnableRDM Response 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 RemoveAccountResponse

type RemoveAccountResponse struct {
}

RemoveAccount Response type.

type RemoveArgs

type RemoveArgs struct {
	Xmlns        string `xml:"xmlns:u,attr"`
	VariableName string `xml:"VariableName"`
}

Remove Argument type.

type RemoveResponse

type RemoveResponse struct {
}

Remove Response 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) Client

func (s *Service) Client() *http.Client

Client returns the HTTP client used to communicate with the service.

func (*Service) ControlEndpoint

func (s *Service) ControlEndpoint() *url.URL

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

func (s *Service) EventEndpoint() *url.URL

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) Location

func (s *Service) Location() *url.URL

Location returns the base URL of the device hosting the service.

func (*Service) ParseEvent

func (zp *Service) ParseEvent(body []byte) []interface{}

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

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 SetStringResponse

type SetStringResponse struct {
}

SetString Response type.

type ThirdPartyHash

type ThirdPartyHash string

type UpdateID

type UpdateID uint32

type UpdateIDX

type UpdateIDX uint32

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL