Documentation
¶
Overview ¶
Package alarmclock is a generated AlarmClock package.
Index ¶
- Constants
- type AlarmListVersion
- type CreateAlarmArgs
- type CreateAlarmResponse
- type DailyIndexRefreshTime
- type DateFormat
- type DestroyAlarmArgs
- type DestroyAlarmResponse
- type GetDailyIndexRefreshTimeArgs
- type GetDailyIndexRefreshTimeResponse
- type GetFormatArgs
- type GetFormatResponse
- type GetHouseholdTimeAtStampArgs
- type GetHouseholdTimeAtStampResponse
- type GetTimeNowArgs
- type GetTimeNowResponse
- type GetTimeServerArgs
- type GetTimeServerResponse
- type GetTimeZoneAndRuleArgs
- type GetTimeZoneAndRuleResponse
- type GetTimeZoneArgs
- type GetTimeZoneResponse
- type GetTimeZoneRuleArgs
- type GetTimeZoneRuleResponse
- type ListAlarmsArgs
- type ListAlarmsResponse
- type Property
- type Service
- func (s *Service) Client() *http.Client
- func (s *Service) ControlEndpoint() *url.URL
- func (s *Service) CreateAlarm(args *CreateAlarmArgs) (*CreateAlarmResponse, error)
- func (s *Service) DestroyAlarm(args *DestroyAlarmArgs) (*DestroyAlarmResponse, error)
- func (s *Service) EventEndpoint() *url.URL
- func (s *Service) GetDailyIndexRefreshTime(args *GetDailyIndexRefreshTimeArgs) (*GetDailyIndexRefreshTimeResponse, error)
- func (s *Service) GetFormat(args *GetFormatArgs) (*GetFormatResponse, error)
- func (s *Service) GetHouseholdTimeAtStamp(args *GetHouseholdTimeAtStampArgs) (*GetHouseholdTimeAtStampResponse, error)
- func (s *Service) GetTimeNow(args *GetTimeNowArgs) (*GetTimeNowResponse, error)
- func (s *Service) GetTimeServer(args *GetTimeServerArgs) (*GetTimeServerResponse, error)
- func (s *Service) GetTimeZone(args *GetTimeZoneArgs) (*GetTimeZoneResponse, error)
- func (s *Service) GetTimeZoneAndRule(args *GetTimeZoneAndRuleArgs) (*GetTimeZoneAndRuleResponse, error)
- func (s *Service) GetTimeZoneRule(args *GetTimeZoneRuleArgs) (*GetTimeZoneRuleResponse, error)
- func (s *Service) ListAlarms(args *ListAlarmsArgs) (*ListAlarmsResponse, error)
- func (s *Service) Location() *url.URL
- func (zp *Service) ParseEvent(body []byte) []interface{}
- func (s *Service) SetDailyIndexRefreshTime(args *SetDailyIndexRefreshTimeArgs) (*SetDailyIndexRefreshTimeResponse, error)
- func (s *Service) SetFormat(args *SetFormatArgs) (*SetFormatResponse, error)
- func (s *Service) SetTimeNow(args *SetTimeNowArgs) (*SetTimeNowResponse, error)
- func (s *Service) SetTimeServer(args *SetTimeServerArgs) (*SetTimeServerResponse, error)
- func (s *Service) SetTimeZone(args *SetTimeZoneArgs) (*SetTimeZoneResponse, error)
- func (s *Service) UpdateAlarm(args *UpdateAlarmArgs) (*UpdateAlarmResponse, error)
- type ServiceOption
- type SetDailyIndexRefreshTimeArgs
- type SetDailyIndexRefreshTimeResponse
- type SetFormatArgs
- type SetFormatResponse
- type SetTimeNowArgs
- type SetTimeNowResponse
- type SetTimeServerArgs
- type SetTimeServerResponse
- type SetTimeZoneArgs
- type SetTimeZoneResponse
- type TimeFormat
- type TimeGeneration
- type TimeServer
- type TimeZone
- type UpdateAlarmArgs
- type UpdateAlarmResponse
- type UpnpEvent
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 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 GetHouseholdTimeAtStampResponse ¶
type GetHouseholdTimeAtStampResponse struct {
HouseholdUTCTime string `xml:"HouseholdUTCTime"`
}
type GetTimeNowArgs ¶
type GetTimeNowArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetTimeNowResponse ¶
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 GetTimeZoneArgs ¶
type GetTimeZoneArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type GetTimeZoneResponse ¶
type GetTimeZoneRuleArgs ¶
type GetTimeZoneRuleResponse ¶
type GetTimeZoneRuleResponse struct {
TimeZone string `xml:"TimeZone"`
}
type ListAlarmsArgs ¶
type ListAlarmsArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type ListAlarmsResponse ¶
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) ControlEndpoint ¶
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 (*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) ParseEvent ¶
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 SetDailyIndexRefreshTimeResponse ¶
type SetDailyIndexRefreshTimeResponse struct { }
type SetFormatArgs ¶
type SetFormatResponse ¶
type SetFormatResponse struct { }
type SetTimeNowArgs ¶
type SetTimeNowResponse ¶
type SetTimeNowResponse struct { }
type SetTimeServerArgs ¶
type SetTimeServerResponse ¶
type SetTimeServerResponse struct { }
type SetTimeZoneArgs ¶
type SetTimeZoneResponse ¶
type SetTimeZoneResponse struct { }
type TimeFormat ¶
type TimeFormat string
type TimeGeneration ¶
type TimeGeneration uint32
type TimeServer ¶
type TimeServer 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 { }
Click to show internal directories.
Click to hide internal directories.