func NewUnlockConnectorResponse(status UnlockStatus) *UnlockConnectorResponse {
	return &UnlockConnectorResponse{Status: status}
}
Creates a new UnlockConnectorResponse, containing all required fields. Optional fields may be set afterwards.
package remotecontrol
import (
	"reflect"
	"gopkg.in/go-playground/validator.v9"
	"github.com/lorenzodonini/ocpp-go/ocpp2.0.1/types"
)
const UnlockConnectorFeatureName = "UnlockConnector"
type UnlockStatus string
const (
	UnlockStatusUnlocked                     UnlockStatus = "Unlocked"                      
	UnlockStatusUnlockFailed                 UnlockStatus = "UnlockFailed"                  
	UnlockStatusOngoingAuthorizedTransaction UnlockStatus = "OngoingAuthorizedTransaction"  
	UnlockStatusUnknownConnector             UnlockStatus = "UnknownConnector"              
)
func isValidUnlockStatus(fl validator.FieldLevel) bool {
	status := UnlockStatus(fl.Field().String())
	switch status {
	case UnlockStatusUnlocked,
		UnlockStatusUnlockFailed,
		UnlockStatusOngoingAuthorizedTransaction,
		UnlockStatusUnknownConnector:
		return true
	default:
		return false
	}
}
type UnlockConnectorRequest struct {
	EvseID      int `json:"evseId" validate:"gte=0"`
	ConnectorID int `json:"connectorId" validate:"gte=0"`
}
type UnlockConnectorResponse struct {
	Status     UnlockStatus      `json:"status" validate:"required,unlockStatus"`
	StatusInfo *types.StatusInfo `json:"statusInfo,omitempty"`
}
type UnlockConnectorFeature struct{}
func (f UnlockConnectorFeature) GetFeatureName() string {
	return UnlockConnectorFeatureName
}
func (f UnlockConnectorFeature) GetRequestType() reflect.Type {
	return reflect.TypeOf(UnlockConnectorRequest{})
}
func (f UnlockConnectorFeature) GetResponseType() reflect.Type {
	return reflect.TypeOf(UnlockConnectorResponse{})
}
func (r UnlockConnectorRequest) GetFeatureName() string {
	return UnlockConnectorFeatureName
}
func (c UnlockConnectorResponse) GetFeatureName() string {
	return UnlockConnectorFeatureName
}
func NewUnlockConnectorRequest(evseID int, connectorID int) *UnlockConnectorRequest {
	return &UnlockConnectorRequest{EvseID: evseID, ConnectorID: connectorID}
}