78 lines
3.3 KiB
C#
78 lines
3.3 KiB
C#
/*
|
|
* OCPP.Core - https://github.com/dallmann-consulting/OCPP.Core
|
|
* Copyright (C) 2020-2021 dallmann consulting GmbH.
|
|
* All Rights Reserved.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OCPP.Core.Server.Messages_OCPP20
|
|
{
|
|
#pragma warning disable // Disable all warnings
|
|
|
|
/// <summary>This contains the current status of the Connector.
|
|
/// </summary>
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
|
public enum ConnectorStatusEnumType
|
|
{
|
|
[System.Runtime.Serialization.EnumMember(Value = @"Available")]
|
|
Available = 0,
|
|
|
|
[System.Runtime.Serialization.EnumMember(Value = @"Occupied")]
|
|
Occupied = 1,
|
|
|
|
[System.Runtime.Serialization.EnumMember(Value = @"Reserved")]
|
|
Reserved = 2,
|
|
|
|
[System.Runtime.Serialization.EnumMember(Value = @"Unavailable")]
|
|
Unavailable = 3,
|
|
|
|
[System.Runtime.Serialization.EnumMember(Value = @"Faulted")]
|
|
Faulted = 4,
|
|
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
|
public partial class StatusNotificationRequest
|
|
{
|
|
[Newtonsoft.Json.JsonProperty("customData", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
|
public CustomDataType CustomData { get; set; }
|
|
|
|
/// <summary>The time for which the status is reported. If absent time of receipt of the message will be assumed.
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
|
public System.DateTimeOffset Timestamp { get; set; }
|
|
|
|
[Newtonsoft.Json.JsonProperty("connectorStatus", Required = Newtonsoft.Json.Required.Always)]
|
|
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
|
public ConnectorStatusEnumType ConnectorStatus { get; set; }
|
|
|
|
/// <summary>The id of the EVSE to which the connector belongs for which the the status is reported.
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("evseId", Required = Newtonsoft.Json.Required.Always)]
|
|
public int EvseId { get; set; }
|
|
|
|
/// <summary>The id of the connector within the EVSE for which the status is reported.
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("connectorId", Required = Newtonsoft.Json.Required.Always)]
|
|
public int ConnectorId { get; set; }
|
|
}
|
|
} |