Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HomeTheaterFacade ¶
type HomeTheaterFacade struct {
// contains filtered or unexported fields
}
HomeTheaterFacade 提供了一個簡單的接口來控制家庭影院系統
func NewHomeTheaterFacade ¶
func NewHomeTheaterFacade(tv *TV, soundSystem *SoundSystem, lights *Lights) *HomeTheaterFacade
NewHomeTheaterFacade 用於創建 HomeTheaterFacade 對象.
func (*HomeTheaterFacade) EndMovie ¶
func (ht *HomeTheaterFacade) EndMovie()
func (*HomeTheaterFacade) WatchMovie ¶
func (ht *HomeTheaterFacade) WatchMovie()
type SoundSystem ¶
type SoundSystem struct{}
SoundSystem 表示家庭影院中的音響系統
func (*SoundSystem) Off ¶
func (s *SoundSystem) Off()
func (*SoundSystem) On ¶
func (s *SoundSystem) On()
Click to show internal directories.
Click to hide internal directories.