facade

package
v0.0.0-...-54da96c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

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 Lights

type Lights struct{}

Lights 表示家庭影院中的燈光系統

func (*Lights) Brighten

func (l *Lights) Brighten()

func (*Lights) Dim

func (l *Lights) Dim()

type SoundSystem

type SoundSystem struct{}

SoundSystem 表示家庭影院中的音響系統

func (*SoundSystem) Off

func (s *SoundSystem) Off()

func (*SoundSystem) On

func (s *SoundSystem) On()

type TV

type TV struct{}

TV 表示家庭影院中的電視

func (*TV) Off

func (t *TV) Off()

func (*TV) On

func (t *TV) On()

Jump to

Keyboard shortcuts

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