github.com/enbility/spine-go@v0.7.0/model/deviceclassification.go (about)

     1  package model
     2  
     3  type DeviceClassificationStringType string
     4  
     5  type PowerSourceType string
     6  
     7  const (
     8  	PowerSourceTypeUnknown          PowerSourceType = "unknown"
     9  	PowerSourceTypeMainssinglephase PowerSourceType = "mainsSinglePhase"
    10  	PowerSourceTypeMains3Phase      PowerSourceType = "mains3Phase"
    11  	PowerSourceTypeBattery          PowerSourceType = "battery"
    12  	PowerSourceTypeDc               PowerSourceType = "dc"
    13  )
    14  
    15  type DeviceClassificationManufacturerDataType struct {
    16  	DeviceName                     *DeviceClassificationStringType `json:"deviceName,omitempty"`
    17  	DeviceCode                     *DeviceClassificationStringType `json:"deviceCode,omitempty"`
    18  	SerialNumber                   *DeviceClassificationStringType `json:"serialNumber,omitempty"`
    19  	SoftwareRevision               *DeviceClassificationStringType `json:"softwareRevision,omitempty"`
    20  	HardwareRevision               *DeviceClassificationStringType `json:"hardwareRevision,omitempty"`
    21  	VendorName                     *DeviceClassificationStringType `json:"vendorName,omitempty"`
    22  	VendorCode                     *DeviceClassificationStringType `json:"vendorCode,omitempty"`
    23  	BrandName                      *DeviceClassificationStringType `json:"brandName,omitempty"`
    24  	PowerSource                    *PowerSourceType                `json:"powerSource,omitempty"`
    25  	ManufacturerNodeIdentification *DeviceClassificationStringType `json:"manufacturerNodeIdentification,omitempty"`
    26  	ManufacturerLabel              *LabelType                      `json:"manufacturerLabel,omitempty"`
    27  	ManufacturerDescription        *DescriptionType                `json:"manufacturerDescription,omitempty"`
    28  }
    29  
    30  type DeviceClassificationManufacturerDataElementsType struct {
    31  	DeviceName                     *ElementTagType `json:"deviceName,omitempty"`
    32  	DeviceCode                     *ElementTagType `json:"deviceCode,omitempty"`
    33  	SerialNumber                   *ElementTagType `json:"serialNumber,omitempty"`
    34  	SoftwareRevision               *ElementTagType `json:"softwareRevision,omitempty"`
    35  	HardwareRevision               *ElementTagType `json:"hardwareRevision,omitempty"`
    36  	VendorName                     *ElementTagType `json:"vendorName,omitempty"`
    37  	VendorCode                     *ElementTagType `json:"vendorCode,omitempty"`
    38  	BrandName                      *ElementTagType `json:"brandName,omitempty"`
    39  	PowerSource                    *ElementTagType `json:"powerSource,omitempty"`
    40  	ManufacturerNodeIdentification *ElementTagType `json:"manufacturerNodeIdentification,omitempty"`
    41  	ManufacturerLabel              *ElementTagType `json:"manufacturerLabel,omitempty"`
    42  	ManufacturerDescription        *ElementTagType `json:"manufacturerDescription,omitempty"`
    43  }
    44  
    45  type DeviceClassificationUserDataType struct {
    46  	UserNodeIdentification *DeviceClassificationStringType `json:"userNodeIdentification,omitempty"`
    47  	UserLabel              *LabelType                      `json:"userLabel,omitempty"`
    48  	UserDescription        *DescriptionType                `json:"userDescription,omitempty"`
    49  }
    50  
    51  type DeviceClassificationUserDataElementsType struct {
    52  	UserNodeIdentification *ElementTagType `json:"userNodeIdentification,omitempty"`
    53  	UserLabel              *ElementTagType `json:"userLabel,omitempty"`
    54  	UserDescription        *ElementTagType `json:"userDescription,omitempty"`
    55  }