inital
This commit is contained in:
39
OCPP.Core.Server/Messages_OCPP16/AuthorizeRequest.cs
Normal file
39
OCPP.Core.Server/Messages_OCPP16/AuthorizeRequest.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class AuthorizeRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("idTag", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string IdTag { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
76
OCPP.Core.Server/Messages_OCPP16/AuthorizeResponse.cs
Normal file
76
OCPP.Core.Server/Messages_OCPP16/AuthorizeResponse.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class AuthorizeResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("idTagInfo", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required]
|
||||
public IdTagInfo IdTagInfo { get; set; } = new IdTagInfo();
|
||||
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class IdTagInfo
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("expiryDate", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public System.DateTimeOffset ExpiryDate { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("parentIdTag", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string ParentIdTag { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public IdTagInfoStatus Status { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum IdTagInfoStatus
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Accepted")]
|
||||
Accepted = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Blocked")]
|
||||
Blocked = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Expired")]
|
||||
Expired = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Invalid")]
|
||||
Invalid = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"ConcurrentTx")]
|
||||
ConcurrentTx = 4,
|
||||
|
||||
}
|
||||
}
|
||||
67
OCPP.Core.Server/Messages_OCPP16/BootNotificationRequest.cs
Normal file
67
OCPP.Core.Server/Messages_OCPP16/BootNotificationRequest.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
namespace OCPP.Core.Server.Messages_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class BootNotificationRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("chargePointVendor", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string ChargePointVendor { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("chargePointModel", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string ChargePointModel { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("chargePointSerialNumber", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(25)]
|
||||
public string ChargePointSerialNumber { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("chargeBoxSerialNumber", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(25)]
|
||||
public string ChargeBoxSerialNumber { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("firmwareVersion", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(50)]
|
||||
public string FirmwareVersion { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("iccid", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string Iccid { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("imsi", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string Imsi { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("meterType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(25)]
|
||||
public string MeterType { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("meterSerialNumber", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(25)]
|
||||
public string MeterSerialNumber { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
55
OCPP.Core.Server/Messages_OCPP16/BootNotificationResponse.cs
Normal file
55
OCPP.Core.Server/Messages_OCPP16/BootNotificationResponse.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
namespace OCPP.Core.Server.Messages_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class BootNotificationResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public BootNotificationResponseStatus Status { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("currentTime", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
public System.DateTimeOffset CurrentTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Heartbeat interval in seconds
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("interval", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int Interval { get; set; }
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum BootNotificationResponseStatus
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Accepted")]
|
||||
Accepted = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Pending")]
|
||||
Pending = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Rejected")]
|
||||
Rejected = 2,
|
||||
}
|
||||
}
|
||||
45
OCPP.Core.Server/Messages_OCPP16/DataTransferRequest.cs
Normal file
45
OCPP.Core.Server/Messages_OCPP16/DataTransferRequest.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class DataTransferRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("vendorId", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(255)]
|
||||
public string VendorId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("messageId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(50)]
|
||||
public string MessageId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("data", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public string Data { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
58
OCPP.Core.Server/Messages_OCPP16/DataTransferResponse.cs
Normal file
58
OCPP.Core.Server/Messages_OCPP16/DataTransferResponse.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class DataTransferResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public DataTransferResponseStatus Status { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("data", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public string Data { get; set; }
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum DataTransferResponseStatus
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Accepted")]
|
||||
Accepted = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Rejected")]
|
||||
Rejected = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"UnknownMessageId")]
|
||||
UnknownMessageId = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"UnknownVendorId")]
|
||||
UnknownVendorId = 3,
|
||||
|
||||
}
|
||||
}
|
||||
77
OCPP.Core.Server/Messages_OCPP16/ErrorCodes.cs
Normal file
77
OCPP.Core.Server/Messages_OCPP16/ErrorCodes.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
/// <summary>
|
||||
/// Defined OCPP error codes
|
||||
/// </summary>
|
||||
public class ErrorCodes
|
||||
{
|
||||
/// <summary>
|
||||
/// Requested Action is recognized but not supported by the receiver
|
||||
/// </summary>
|
||||
public static string NotSupported = "NotSupported";
|
||||
|
||||
/// <summary>
|
||||
/// InternalError An internal error occurred and the receiver was not able to process the requested Action successfully
|
||||
/// </summary>
|
||||
public static string InternalError = "InternalError";
|
||||
|
||||
/// <summary>
|
||||
/// Payload for Action is incomplete
|
||||
/// </summary>
|
||||
public static string ProtocolError = "ProtocolError";
|
||||
|
||||
/// <summary>
|
||||
/// During the processing of Action a security issue occurred preventing receiver from completing the Action successfully
|
||||
/// </summary>
|
||||
public static string SecurityError = "SecurityError";
|
||||
|
||||
/// <summary>
|
||||
/// Payload for Action is syntactically incorrect or not conform the PDU structure for Action
|
||||
/// </summary>
|
||||
public static string FormationViolation = "FormationViolation";
|
||||
|
||||
/// <summary>
|
||||
/// Payload is syntactically correct but at least one field contains an invalid value
|
||||
/// </summary>
|
||||
public static string PropertyConstraintViolation = "PropertyConstraintViolation";
|
||||
|
||||
/// <summary>
|
||||
/// Payload for Action is syntactically correct but at least one of the fields violates occurence constraints
|
||||
/// </summary>
|
||||
public static string OccurenceConstraintViolation = "OccurenceConstraintViolation";
|
||||
|
||||
/// <summary>
|
||||
/// Payload for Action is syntactically correct but at least one of the fields violates data type constraints(e.g. “somestring”: 12)
|
||||
/// </summary>
|
||||
public static string TypeConstraintViolation = "TypeConstraintViolation";
|
||||
|
||||
/// <summary>
|
||||
/// Any other error not covered by the previous ones
|
||||
/// </summary>
|
||||
public static string GenericError = "GenericError";
|
||||
}
|
||||
}
|
||||
29
OCPP.Core.Server/Messages_OCPP16/HeartbeatRequest.cs
Normal file
29
OCPP.Core.Server/Messages_OCPP16/HeartbeatRequest.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
namespace OCPP.Core.Server.Messages_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class HeartbeatRequest
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
31
OCPP.Core.Server/Messages_OCPP16/HeartbeatResponse.cs
Normal file
31
OCPP.Core.Server/Messages_OCPP16/HeartbeatResponse.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
namespace OCPP.Core.Server.Messages_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class HeartbeatResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("currentTime", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
public System.DateTimeOffset CurrentTime { get; set; }
|
||||
}
|
||||
}
|
||||
56
OCPP.Core.Server/Messages_OCPP16/MeterValuesRequest.cs
Normal file
56
OCPP.Core.Server/Messages_OCPP16/MeterValuesRequest.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class MeterValuesRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("connectorId", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int ConnectorId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public int TransactionId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("meterValue", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required]
|
||||
public System.Collections.Generic.ICollection<MeterValue> MeterValue { get; set; } = new System.Collections.ObjectModel.Collection<MeterValue>();
|
||||
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class MeterValue
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
public System.DateTimeOffset Timestamp { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("sampledValue", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required]
|
||||
public System.Collections.Generic.ICollection<SampledValue> SampledValue { get; set; } = new System.Collections.ObjectModel.Collection<SampledValue>();
|
||||
}
|
||||
}
|
||||
33
OCPP.Core.Server/Messages_OCPP16/MeterValuesResponse.cs
Normal file
33
OCPP.Core.Server/Messages_OCPP16/MeterValuesResponse.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class MeterValuesResponse
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
48
OCPP.Core.Server/Messages_OCPP16/ResetRequest.cs
Normal file
48
OCPP.Core.Server/Messages_OCPP16/ResetRequest.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class ResetRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public ResetRequestType Type { get; set; }
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum ResetRequestType
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Hard")]
|
||||
Hard = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Soft")]
|
||||
Soft = 1,
|
||||
|
||||
}
|
||||
}
|
||||
47
OCPP.Core.Server/Messages_OCPP16/ResetResponse.cs
Normal file
47
OCPP.Core.Server/Messages_OCPP16/ResetResponse.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class ResetResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public ResetResponseStatus Status { get; set; }
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum ResetResponseStatus
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Accepted")]
|
||||
Accepted = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Rejected")]
|
||||
Rejected = 1,
|
||||
}
|
||||
}
|
||||
52
OCPP.Core.Server/Messages_OCPP16/StartTransactionRequest.cs
Normal file
52
OCPP.Core.Server/Messages_OCPP16/StartTransactionRequest.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class StartTransactionRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("connectorId", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int ConnectorId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("idTag", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string IdTag { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("meterStart", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int MeterStart { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("reservationId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public int ReservationId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
public System.DateTimeOffset Timestamp { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
39
OCPP.Core.Server/Messages_OCPP16/StartTransactionResponse.cs
Normal file
39
OCPP.Core.Server/Messages_OCPP16/StartTransactionResponse.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class StartTransactionResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("idTagInfo", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required]
|
||||
public IdTagInfo IdTagInfo { get; set; } = new IdTagInfo();
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int TransactionId { get; set; }
|
||||
}
|
||||
}
|
||||
147
OCPP.Core.Server/Messages_OCPP16/StatusNotificationRequest.cs
Normal file
147
OCPP.Core.Server/Messages_OCPP16/StatusNotificationRequest.cs
Normal file
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class StatusNotificationRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("connectorId", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int ConnectorId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("errorCode", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public StatusNotificationRequestErrorCode ErrorCode { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("info", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(50)]
|
||||
public string Info { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public StatusNotificationRequestStatus Status { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public System.DateTimeOffset? Timestamp { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("vendorId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(255)]
|
||||
public string VendorId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("vendorErrorCode", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(50)]
|
||||
public string VendorErrorCode { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum StatusNotificationRequestErrorCode
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"ConnectorLockFailure")]
|
||||
ConnectorLockFailure = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"EVCommunicationError")]
|
||||
EVCommunicationError = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"GroundFailure")]
|
||||
GroundFailure = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"HighTemperature")]
|
||||
HighTemperature = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"InternalError")]
|
||||
InternalError = 4,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"LocalListConflict")]
|
||||
LocalListConflict = 5,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"NoError")]
|
||||
NoError = 6,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"OtherError")]
|
||||
OtherError = 7,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"OverCurrentFailure")]
|
||||
OverCurrentFailure = 8,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"PowerMeterFailure")]
|
||||
PowerMeterFailure = 9,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"PowerSwitchFailure")]
|
||||
PowerSwitchFailure = 10,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"ReaderFailure")]
|
||||
ReaderFailure = 11,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"ResetFailure")]
|
||||
ResetFailure = 12,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"UnderVoltage")]
|
||||
UnderVoltage = 13,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"OverVoltage")]
|
||||
OverVoltage = 14,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"WeakSignal")]
|
||||
WeakSignal = 15,
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum StatusNotificationRequestStatus
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Available")]
|
||||
Available = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Preparing")]
|
||||
Preparing = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Charging")]
|
||||
Charging = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"SuspendedEVSE")]
|
||||
SuspendedEVSE = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"SuspendedEV")]
|
||||
SuspendedEV = 4,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Finishing")]
|
||||
Finishing = 5,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Reserved")]
|
||||
Reserved = 6,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Unavailable")]
|
||||
Unavailable = 7,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Faulted")]
|
||||
Faulted = 8,
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
public class StatusNotificationResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
360
OCPP.Core.Server/Messages_OCPP16/StopTransactionRequest.cs
Normal file
360
OCPP.Core.Server/Messages_OCPP16/StopTransactionRequest.cs
Normal file
@@ -0,0 +1,360 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class StopTransactionRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("idTag", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[System.ComponentModel.DataAnnotations.StringLength(20)]
|
||||
public string IdTag { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("meterStop", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int MeterStop { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
public System.DateTimeOffset Timestamp { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int TransactionId { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("reason", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public StopTransactionRequestReason Reason { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("transactionData", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public System.Collections.Generic.ICollection<TransactionData> TransactionData { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum StopTransactionRequestReason
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"EmergencyStop")]
|
||||
EmergencyStop = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"EVDisconnected")]
|
||||
EVDisconnected = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"HardReset")]
|
||||
HardReset = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Local")]
|
||||
Local = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Other")]
|
||||
Other = 4,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"PowerLoss")]
|
||||
PowerLoss = 5,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Reboot")]
|
||||
Reboot = 6,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Remote")]
|
||||
Remote = 7,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"SoftReset")]
|
||||
SoftReset = 8,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"UnlockCommand")]
|
||||
UnlockCommand = 9,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"DeAuthorized")]
|
||||
DeAuthorized = 10,
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class TransactionData
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("timestamp", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
public System.DateTimeOffset Timestamp { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("sampledValue", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required]
|
||||
public System.Collections.Generic.ICollection<SampledValue> SampledValue { get; set; } = new System.Collections.ObjectModel.Collection<SampledValue>();
|
||||
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class SampledValue
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
public string Value { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("context", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public SampledValueContext? Context { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("format", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public SampledValueFormat? Format { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("measurand", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public SampledValueMeasurand? Measurand { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("phase", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public SampledValuePhase? Phase { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public SampledValueLocation? Location { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonProperty("unit", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public SampledValueUnit? Unit { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum SampledValueContext
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Interruption.Begin")]
|
||||
Interruption_Begin = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Interruption.End")]
|
||||
Interruption_End = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Sample.Clock")]
|
||||
Sample_Clock = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Sample.Periodic")]
|
||||
Sample_Periodic = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Transaction.Begin")]
|
||||
Transaction_Begin = 4,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Transaction.End")]
|
||||
Transaction_End = 5,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Trigger")]
|
||||
Trigger = 6,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Other")]
|
||||
Other = 7,
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum SampledValueFormat
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Raw")]
|
||||
Raw = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"SignedData")]
|
||||
SignedData = 1,
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum SampledValueMeasurand
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Active.Export.Register")]
|
||||
Energy_Active_Export_Register = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Active.Import.Register")]
|
||||
Energy_Active_Import_Register = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Reactive.Export.Register")]
|
||||
Energy_Reactive_Export_Register = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Reactive.Import.Register")]
|
||||
Energy_Reactive_Import_Register = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Active.Export.Interval")]
|
||||
Energy_Active_Export_Interval = 4,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Active.Import.Interval")]
|
||||
Energy_Active_Import_Interval = 5,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Reactive.Export.Interval")]
|
||||
Energy_Reactive_Export_Interval = 6,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Energy.Reactive.Import.Interval")]
|
||||
Energy_Reactive_Import_Interval = 7,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Power.Active.Export")]
|
||||
Power_Active_Export = 8,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Power.Active.Import")]
|
||||
Power_Active_Import = 9,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Power.Offered")]
|
||||
Power_Offered = 10,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Power.Reactive.Export")]
|
||||
Power_Reactive_Export = 11,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Power.Reactive.Import")]
|
||||
Power_Reactive_Import = 12,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Power.Factor")]
|
||||
Power_Factor = 13,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Current.Import")]
|
||||
Current_Import = 14,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Current.Export")]
|
||||
Current_Export = 15,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Current.Offered")]
|
||||
Current_Offered = 16,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Voltage")]
|
||||
Voltage = 17,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Frequency")]
|
||||
Frequency = 18,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Temperature")]
|
||||
Temperature = 19,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"SoC")]
|
||||
SoC = 20,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"RPM")]
|
||||
RPM = 21,
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum SampledValuePhase
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L1")]
|
||||
L1 = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L2")]
|
||||
L2 = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L3")]
|
||||
L3 = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"N")]
|
||||
N = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L1-N")]
|
||||
L1N = 4,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L2-N")]
|
||||
L2N = 5,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L3-N")]
|
||||
L3N = 6,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L1-L2")]
|
||||
L1L2 = 7,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L2-L3")]
|
||||
L2L3 = 8,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"L3-L1")]
|
||||
L3L1 = 9,
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum SampledValueLocation
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Cable")]
|
||||
Cable = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"EV")]
|
||||
EV = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Inlet")]
|
||||
Inlet = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Outlet")]
|
||||
Outlet = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Body")]
|
||||
Body = 4,
|
||||
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum SampledValueUnit
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Wh")]
|
||||
Wh = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"kWh")]
|
||||
KWh = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"varh")]
|
||||
Varh = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"kvarh")]
|
||||
Kvarh = 3,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"W")]
|
||||
W = 4,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"kW")]
|
||||
KW = 5,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"VA")]
|
||||
VA = 6,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"kVA")]
|
||||
KVA = 7,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"var")]
|
||||
Var = 8,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"kvar")]
|
||||
Kvar = 9,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"A")]
|
||||
A = 10,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"V")]
|
||||
V = 11,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"K")]
|
||||
K = 12,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Celcius")]
|
||||
Celcius = 13,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Fahrenheit")]
|
||||
Fahrenheit = 14,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Percent")]
|
||||
Percent = 15,
|
||||
|
||||
}
|
||||
}
|
||||
35
OCPP.Core.Server/Messages_OCPP16/StopTransactionResponse.cs
Normal file
35
OCPP.Core.Server/Messages_OCPP16/StopTransactionResponse.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class StopTransactionResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("idTagInfo", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public IdTagInfo IdTagInfo { get; set; }
|
||||
}
|
||||
}
|
||||
35
OCPP.Core.Server/Messages_OCPP16/UnlockConnectorRequest.cs
Normal file
35
OCPP.Core.Server/Messages_OCPP16/UnlockConnectorRequest.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class UnlockConnectorRequest
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("connectorId", Required = Newtonsoft.Json.Required.Always)]
|
||||
public int ConnectorId { get; set; }
|
||||
}
|
||||
}
|
||||
50
OCPP.Core.Server/Messages_OCPP16/UnlockConnectorResponse.cs
Normal file
50
OCPP.Core.Server/Messages_OCPP16/UnlockConnectorResponse.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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_OCPP16
|
||||
{
|
||||
#pragma warning disable // Disable all warnings
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public partial class UnlockConnectorResponse
|
||||
{
|
||||
[Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)]
|
||||
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
public UnlockConnectorResponseStatus Status { get; set; }
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.3.1.0 (Newtonsoft.Json v9.0.0.0)")]
|
||||
public enum UnlockConnectorResponseStatus
|
||||
{
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"Unlocked")]
|
||||
Unlocked = 0,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"UnlockFailed")]
|
||||
UnlockFailed = 1,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"NotSupported")]
|
||||
NotSupported = 2
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user