-
Notifications
You must be signed in to change notification settings - Fork 1
/
site.go
51 lines (35 loc) · 1.4 KB
/
site.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package monta
import "time"
// Site is a charging site.
type Site struct {
// ID of the site.
ID int64 `json:"id"`
// Name of the site.
Name string `json:"name"`
// ChargePointCount is the number of charge points at this site.
ChargePointCount int64 `json:"chargePointCount"`
// ActiveChargePointCount is the number of active charge points at this site.
ActiveChargePointCount int64 `json:"activeChargePointCount"`
// AvailableChargePointCount is the number of available charge points at this site.
AvailableChargePointCount int64 `json:"availableChargePointCount"`
// MaxKW available at this site.
MaxKW *float64 `json:"maxKW"`
// Type of charge points at this site.
Type *ChargePointType `json:"type"`
// Visibility indicates if this site is public or private.
Visibility Visibility `json:"visibility"`
// A Note you have entered for this site, e.g. via our Portal.
Note *string `json:"note"`
// External Id of this entity, managed by you.
PartnerExternalID *string `json:"partnerExternalId"`
// Location of the site.
Location Location `json:"location"`
// Connectors is a list of supported connector types at this site.
Connectors []Connector `json:"connectors"`
// When the charging site was created.
CreatedAt time.Time `json:"createdAt"`
// When the charging site was last updated.
UpdatedAt time.Time `json:"updatedAt"`
// Operator of this site
Operator *Operator `json:"operator"`
}