alarmclock

package
v0.0.0-...-cbcd650 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package alarmclock is a generated AlarmClock package.

Index

Constants

View Source
const (
	ServiceURN     = "urn:schemas-upnp-org:service:AlarmClock: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 AlarmListVersion

type AlarmListVersion string

type CreateAlarmArgs

type CreateAlarmArgs struct {
	Xmlns          string `xml:"xmlns:u,attr"`
	StartLocalTime string `xml:"StartLocalTime"`
	Duration       string `xml:"Duration"`
	// Allowed Value: ONCE
	// Allowed Value: WEEKDAYS
	// Allowed Value: WEEKENDS
	// Allowed Value: DAILY
	Recurrence      string `xml:"Recurrence"`
	Enabled         bool   `xml:"Enabled"`
	RoomUUID        string `xml:"RoomUUID"`
	ProgramURI      string `xml:"ProgramURI"`
	ProgramMetaData string `xml:"ProgramMetaData"`
	// Allowed Value: NORMAL
	// Allowed Value: REPEAT_ALL
	// Allowed Value: SHUFFLE_NOREPEAT
	// Allowed Value: SHUFFLE
	PlayMode           string `xml:"PlayMode"`
	Volume             uint16 `xml:"Volume"`
	IncludeLinkedZones bool   `xml:"IncludeLinkedZones"`
}

type CreateAlarmResponse

type CreateAlarmResponse struct {
	AssignedID uint32 `xml:"AssignedID"`
}

type DailyIndexRefreshTime

type DailyIndexRefreshTime string

type DateFormat

type DateFormat string

type DestroyAlarmArgs

type DestroyAlarmArgs struct {
	Xmlns string `xml:"xmlns:u,attr"`
	ID    uint32 `xml:"ID"`
}

type DestroyAlarmResponse

type DestroyAlarmResponse struct {
}

type GetDailyIndexRefreshTimeArgs

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

type GetDailyIndexRefreshTimeResponse

type GetDailyIndexRefreshTimeResponse struct {
	CurrentDailyIndexRefreshTime string `xml:"CurrentDailyIndexRefreshTime"`
}

type GetFormatArgs

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

type GetFormatResponse

type GetFormatResponse struct {
	CurrentTimeFormat string `xml:"CurrentTimeFormat"`
	CurrentDateFormat string `xml:"CurrentDateFormat"`
}

type GetHouseholdTimeAtStampArgs

type GetHouseholdTimeAtStampArgs struct {
	Xmlns     string `xml:"xmlns:u,attr"`
	TimeStamp string `xml:"TimeStamp"`
}

type GetHouseholdTimeAtStampResponse

type GetHouseholdTimeAtStampResponse struct {
	HouseholdUTCTime string `xml:"HouseholdUTCTime"`
}

type GetTimeNowArgs

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

type GetTimeNowResponse

type GetTimeNowResponse struct {
	CurrentUTCTime        string `xml:"CurrentUTCTime"`
	CurrentLocalTime      string `xml:"CurrentLocalTime"`
	CurrentTimeZone       string `xml:"CurrentTimeZone"`
	CurrentTimeGeneration uint32 `xml:"CurrentTimeGeneration"`
}

type GetTimeServerArgs

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

type GetTimeServerResponse

type GetTimeServerResponse struct {
	CurrentTimeServer string `xml:"CurrentTimeServer"`
}

type GetTimeZoneAndRuleArgs

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

type GetTimeZoneAndRuleResponse

type GetTimeZoneAndRuleResponse struct {
	Index           int32  `xml:"Index"`
	AutoAdjustDst   bool   `xml:"AutoAdjustDst"`
	CurrentTimeZone string `xml:"CurrentTimeZone"`
}

type GetTimeZoneArgs

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

type GetTimeZoneResponse

type GetTimeZoneResponse struct {
	Index         int32 `xml:"Index"`
	AutoAdjustDst bool  `xml:"AutoAdjustDst"`
}

type GetTimeZoneRuleArgs

type GetTimeZoneRuleArgs struct {
	Xmlns string `xml:"xmlns:u,attr"`
	Index int32  `xml:"Index"`
}

type GetTimeZoneRuleResponse

type GetTimeZoneRuleResponse struct {
	TimeZone string `xml:"TimeZone"`
}

type ListAlarmsArgs

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

type ListAlarmsResponse

type ListAlarmsResponse struct {
	CurrentAlarmList        string `xml:"CurrentAlarmList"`
	CurrentAlarmListVersion string `xml:"CurrentAlarmListVersion"`
}

type Property

type Property struct {
	XMLName               xml.Name               `xml:"property"`
	TimeZone              *TimeZone              `xml:"TimeZone"`
	TimeServer            *TimeServer            `xml:"TimeServer"`
	TimeGeneration        *TimeGeneration        `xml:"TimeGeneration"`
	AlarmListVersion      *AlarmListVersion      `xml:"AlarmListVersion"`
	DailyIndexRefreshTime *DailyIndexRefreshTime `xml:"DailyIndexRefreshTime"`
	TimeFormat            *TimeFormat            `xml:"TimeFormat"`
	DateFormat            *DateFormat            `xml:"DateFormat"`
}

type Service

type Service struct {
	TimeZone              *TimeZone
	TimeServer            *TimeServer
	TimeGeneration        *TimeGeneration
	AlarmListVersion      *AlarmListVersion
	DailyIndexRefreshTime *DailyIndexRefreshTime
	TimeFormat            *TimeFormat
	DateFormat            *DateFormat
	// contains filtered or unexported fields
}

func NewService

func NewService(opts ...ServiceOption) *Service

func (*Service) Client

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

func (*Service) ControlEndpoint

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

func (*Service) CreateAlarm

func (s *Service) CreateAlarm(args *CreateAlarmArgs) (*CreateAlarmResponse, error)

func (*Service) DestroyAlarm

func (s *Service) DestroyAlarm(args *DestroyAlarmArgs) (*DestroyAlarmResponse, error)

func (*Service) EventEndpoint

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

func (*Service) GetDailyIndexRefreshTime

func (s *Service) GetDailyIndexRefreshTime(args *GetDailyIndexRefreshTimeArgs) (*GetDailyIndexRefreshTimeResponse, error)

func (*Service) GetFormat

func (s *Service) GetFormat(args *GetFormatArgs) (*GetFormatResponse, error)

func (*Service) GetHouseholdTimeAtStamp

func (s *Service) GetHouseholdTimeAtStamp(args *GetHouseholdTimeAtStampArgs) (*GetHouseholdTimeAtStampResponse, error)

func (*Service) GetTimeNow

func (s *Service) GetTimeNow(args *GetTimeNowArgs) (*GetTimeNowResponse, error)

func (*Service) GetTimeServer

func (s *Service) GetTimeServer(args *GetTimeServerArgs) (*GetTimeServerResponse, error)

func (*Service) GetTimeZone

func (s *Service) GetTimeZone(args *GetTimeZoneArgs) (*GetTimeZoneResponse, error)

func (*Service) GetTimeZoneAndRule

func (s *Service) GetTimeZoneAndRule(args *GetTimeZoneAndRuleArgs) (*GetTimeZoneAndRuleResponse, error)

func (*Service) GetTimeZoneRule

func (s *Service) GetTimeZoneRule(args *GetTimeZoneRuleArgs) (*GetTimeZoneRuleResponse, error)

func (*Service) ListAlarms

func (s *Service) ListAlarms(args *ListAlarmsArgs) (*ListAlarmsResponse, error)

func (*Service) Location

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

func (*Service) ParseEvent

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

func (*Service) SetDailyIndexRefreshTime

func (s *Service) SetDailyIndexRefreshTime(args *SetDailyIndexRefreshTimeArgs) (*SetDailyIndexRefreshTimeResponse, error)

func (*Service) SetFormat

func (s *Service) SetFormat(args *SetFormatArgs) (*SetFormatResponse, error)

func (*Service) SetTimeNow

func (s *Service) SetTimeNow(args *SetTimeNowArgs) (*SetTimeNowResponse, error)

func (*Service) SetTimeServer

func (s *Service) SetTimeServer(args *SetTimeServerArgs) (*SetTimeServerResponse, error)

func (*Service) SetTimeZone

func (s *Service) SetTimeZone(args *SetTimeZoneArgs) (*SetTimeZoneResponse, error)

func (*Service) UpdateAlarm

func (s *Service) UpdateAlarm(args *UpdateAlarmArgs) (*UpdateAlarmResponse, error)

type ServiceOption

type ServiceOption func(*Service)

func WithClient

func WithClient(c *http.Client) ServiceOption

func WithLocation

func WithLocation(u *url.URL) ServiceOption

type SetDailyIndexRefreshTimeArgs

type SetDailyIndexRefreshTimeArgs struct {
	Xmlns                        string `xml:"xmlns:u,attr"`
	DesiredDailyIndexRefreshTime string `xml:"DesiredDailyIndexRefreshTime"`
}

type SetDailyIndexRefreshTimeResponse

type SetDailyIndexRefreshTimeResponse struct {
}

type SetFormatArgs

type SetFormatArgs struct {
	Xmlns             string `xml:"xmlns:u,attr"`
	DesiredTimeFormat string `xml:"DesiredTimeFormat"`
	DesiredDateFormat string `xml:"DesiredDateFormat"`
}

type SetFormatResponse

type SetFormatResponse struct {
}

type SetTimeNowArgs

type SetTimeNowArgs struct {
	Xmlns                  string `xml:"xmlns:u,attr"`
	DesiredTime            string `xml:"DesiredTime"`
	TimeZoneForDesiredTime string `xml:"TimeZoneForDesiredTime"`
}

type SetTimeNowResponse

type SetTimeNowResponse struct {
}

type SetTimeServerArgs

type SetTimeServerArgs struct {
	Xmlns             string `xml:"xmlns:u,attr"`
	DesiredTimeServer string `xml:"DesiredTimeServer"`
}

type SetTimeServerResponse

type SetTimeServerResponse struct {
}

type SetTimeZoneArgs

type SetTimeZoneArgs struct {
	Xmlns         string `xml:"xmlns:u,attr"`
	Index         int32  `xml:"Index"`
	AutoAdjustDst bool   `xml:"AutoAdjustDst"`
}

type SetTimeZoneResponse

type SetTimeZoneResponse struct {
}

type TimeFormat

type TimeFormat string

type TimeGeneration

type TimeGeneration uint32

type TimeServer

type TimeServer string

type TimeZone

type TimeZone string

type UpdateAlarmArgs

type UpdateAlarmArgs struct {
	Xmlns          string `xml:"xmlns:u,attr"`
	ID             uint32 `xml:"ID"`
	StartLocalTime string `xml:"StartLocalTime"`
	Duration       string `xml:"Duration"`
	// Allowed Value: ONCE
	// Allowed Value: WEEKDAYS
	// Allowed Value: WEEKENDS
	// Allowed Value: DAILY
	Recurrence      string `xml:"Recurrence"`
	Enabled         bool   `xml:"Enabled"`
	RoomUUID        string `xml:"RoomUUID"`
	ProgramURI      string `xml:"ProgramURI"`
	ProgramMetaData string `xml:"ProgramMetaData"`
	// Allowed Value: NORMAL
	// Allowed Value: REPEAT_ALL
	// Allowed Value: SHUFFLE_NOREPEAT
	// Allowed Value: SHUFFLE
	PlayMode           string `xml:"PlayMode"`
	Volume             uint16 `xml:"Volume"`
	IncludeLinkedZones bool   `xml:"IncludeLinkedZones"`
}

type UpdateAlarmResponse

type UpdateAlarmResponse struct {
}

type UpnpEvent

type UpnpEvent struct {
	XMLName      xml.Name   `xml:"propertyset"`
	XMLNameSpace string     `xml:"xmlns:e,attr"`
	Properties   []Property `xml:"property"`
}

Jump to

Keyboard shortcuts

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