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

     1  package model
     2  
     3  type IdentificationIdType uint
     4  
     5  type IdentificationTypeType string
     6  
     7  const (
     8  	IdentificationTypeTypeEui48       IdentificationTypeType = "eui48"
     9  	IdentificationTypeTypeEui64       IdentificationTypeType = "eui64"
    10  	IdentificationTypeTypeUserrfidtag IdentificationTypeType = "userRfidTag"
    11  )
    12  
    13  type IdentificationValueType string
    14  
    15  type SessionIdType uint
    16  
    17  type IdentificationDataType struct {
    18  	IdentificationId    *IdentificationIdType    `json:"identificationId,omitempty" eebus:"key"`
    19  	IdentificationType  *IdentificationTypeType  `json:"identificationType,omitempty"`
    20  	IdentificationValue *IdentificationValueType `json:"identificationValue,omitempty"`
    21  	Authorized          *bool                    `json:"authorized,omitempty"`
    22  }
    23  
    24  type IdentificationDataElementsType struct {
    25  	IdentificationId    *ElementTagType `json:"identificationId,omitempty"`
    26  	IdentificationType  *ElementTagType `json:"identificationType,omitempty"`
    27  	IdentificationValue *ElementTagType `json:"identificationValue,omitempty"`
    28  	Authorized          *ElementTagType `json:"authorized,omitempty"`
    29  }
    30  
    31  type IdentificationListDataType struct {
    32  	IdentificationData []IdentificationDataType `json:"identificationData,omitempty"`
    33  }
    34  
    35  type IdentificationListDataSelectorsType struct {
    36  	IdentificationId   *IdentificationIdType   `json:"identificationId,omitempty"`
    37  	IdentificationType *IdentificationTypeType `json:"identificationType,omitempty"`
    38  }
    39  
    40  type SessionIdentificationDataType struct {
    41  	SessionId        *SessionIdType        `json:"sessionId,omitempty" eebus:"key"`
    42  	IdentificationId *IdentificationIdType `json:"identificationId,omitempty"`
    43  	IsLatestSession  *bool                 `json:"isLatestSession,omitempty"`
    44  	TimePeriod       *TimePeriodType       `json:"timePeriod,omitempty"`
    45  }
    46  
    47  type SessionIdentificationDataElementsType struct {
    48  	SessionId        *ElementTagType         `json:"sessionId,omitempty"`
    49  	IdentificationId *ElementTagType         `json:"identificationId,omitempty"`
    50  	IsLatestSession  *ElementTagType         `json:"isLatestSession,omitempty"`
    51  	TimePeriod       *TimePeriodElementsType `json:"timePeriod,omitempty"`
    52  }
    53  
    54  type SessionIdentificationListDataType struct {
    55  	SessionIdentificationData []SessionIdentificationDataType `json:"sessionIdentificationData,omitempty"`
    56  }
    57  
    58  type SessionIdentificationListDataSelectorsType struct {
    59  	SessionId        *SessionIdType        `json:"sessionId,omitempty"`
    60  	IdentificationId *IdentificationIdType `json:"identificationId,omitempty"`
    61  	IsLatestSession  *bool                 `json:"isLatestSession,omitempty"`
    62  	TimePeriod       *TimePeriodType       `json:"timePeriod,omitempty"`
    63  }
    64  
    65  type SessionMeasurementRelationDataType struct {
    66  	SessionId     *SessionIdType      `json:"sessionId,omitempty" eebus:"key"`
    67  	MeasurementId []MeasurementIdType `json:"measurementId,omitempty"`
    68  }
    69  
    70  type SessionMeasurementRelationDataElementsType struct {
    71  	SessionId     *ElementTagType `json:"sessionId,omitempty"`
    72  	MeasurementId *ElementTagType `json:"measurementId,omitempty"`
    73  }
    74  
    75  type SessionMeasurementRelationListDataType struct {
    76  	SessionMeasurementRelationData []SessionMeasurementRelationDataType `json:"sessionMeasurementRelationData,omitempty"`
    77  }
    78  
    79  type SessionMeasurementRelationListDataSelectorsType struct {
    80  	SessionId     *SessionIdType     `json:"sessionId,omitempty"`
    81  	MeasurementId *MeasurementIdType `json:"measurementId,omitempty"`
    82  }