Add ChargeRemainder api (#325)

This commit is contained in:
andig 2020-09-13 16:07:11 +02:00 • committed by GitHub
parent a24caac73d
commit 90e23dadcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 1 deletions

View file

@ -81,3 +81,8 @@ type Vehicle interface {
Capacity() int64
ChargeState() (float64, error)
}
// ChargeRemainder provides current charge cycle duration
type ChargeRemainder interface {
RemainingTime() (time.Duration, error)
}