Add PhaseDescriber api (#12052)
This commit is contained in:
parent
05fc57b6cd
commit
72cb1e3800
7 changed files with 51 additions and 14 deletions
|
|
@ -107,15 +107,20 @@ type Authorizer interface {
|
|||
Authorize(key string) error
|
||||
}
|
||||
|
||||
// PhaseDescriber returns the number of availablephases
|
||||
type PhaseDescriber interface {
|
||||
Phases() int
|
||||
}
|
||||
|
||||
// Vehicle represents the EV and it's battery
|
||||
type Vehicle interface {
|
||||
Battery
|
||||
BatteryCapacity
|
||||
IconDescriber
|
||||
FeatureDescriber
|
||||
PhaseDescriber
|
||||
Title() string
|
||||
SetTitle(string)
|
||||
Phases() int
|
||||
Identifiers() []string
|
||||
OnIdentified() ActionConfig
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue