using System; using System.Collections.Generic; using System.Text; namespace KmsProxy.Models { //1. EcuID public class EcuID { public class Request_SupplierEcuID { public string EcuType { get; set; } = "01"; public string Phase { get; set; } = "Dev"; public string SupplierID { get; set; } = "03"; public string EcuID { get; set; } = string.Empty; public string Serial { get; set; } = string.Empty; } public class Response_SupplierEcuID : Response_Common { } } //2. MasterECUKey public class MasterEcuKey { public class Request_SupplierKeyProvisioning { public string ProvisioningType { get; set; } = "EcuMasterKey"; public string EcuID { get; set; } = string.Empty; public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeyProvisioning : Response_Common { public List Records { get; set; } = new List(); #region record public class SupplierKeyProvisioningRecords { public string KeyID { get; set; } = string.Empty; public string M1 { get; set; } = string.Empty; public string M2 { get; set; } = string.Empty; public string M3 { get; set; } = string.Empty; public string M4 { get; set; } = string.Empty; public string M5 { get; set; } = string.Empty; } #endregion } // public class Request_SupplierKeyProvisioning_Result { public string ProvisioningType { get; set; } = "SupplierSymmKey"; public string EcuID { get; set; } = string.Empty; public string ResultMessage { get; set; } = string.Empty; public string ResultStatus { get; set; } = string.Empty; } public class Response_SupplierKeyProvisioning_Result : Response_Common { } } //3. SupplierSymmKey public class SupplierSymmKey { public class Request_SupplierKeyProvisioning { public string ProvisioningType { get; set; } = "SupplierSymmKey"; public string EcuID { get; set; } = string.Empty; public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeyProvisioning : Response_Common { public List Records { get; set; } = new List(); #region record public class SupplierKeyProvisioningRecords { public string M1 { get; set; } = string.Empty; public string M2 { get; set; } = string.Empty; public string M3 { get; set; } = string.Empty; public string M4 { get; set; } = string.Empty; public string M5 { get; set; } = string.Empty; } #endregion } // public class Request_SupplierKeyProvisioning_Result { public string ProvisioningType { get; set; } = "SupplierSymmKey"; public string EcuID { get; set; } = string.Empty; public string ResultMessage { get; set; } = string.Empty; public string ResultStatus { get; set; } = string.Empty; } public class Response_SupplierKeyProvisioning_Result : Response_Common { } // public class Request_SupplierKeySyncValue { public string ProvisioningType { get; set; } = "SupplierSymmKey"; public string EcuID { get; set; } = string.Empty; public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue : Response_Common { public List Records { get; set; } = new List(); #region record public class SupplierKeySyncValueRecords { public string KeyID { get; set; } = string.Empty; public string KeySyncValue { get; set; } = string.Empty; public string Challenge { get; set; } = string.Empty; } #endregion } // public class Request_SupplierKeySyncValue_Result { public string ProvisioningType { get; set; } = "SupplierSymmKey"; public string EcuID { get; set; } = string.Empty; public string ResultMessage { get; set; } = string.Empty; public string ResultStatus { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue_Result : Response_Common { } } //4. SecOCKey public class SecOCKey { public class Request_SupplierKeyProvisioning { public string ProvisioningType { get; set; } = "SecOCKey"; public string EcuID { get; set; } = string.Empty; public string KeyID { get; set; } = string.Empty; public string SupplierSecretKey { get; set; } = string.Empty; public string Counter { get; set; } = string.Empty; public string Challenge { get; set; } = string.Empty; } public class Response_SupplierKeyProvisioning : Response_Common { public List Records { get; set; } = new List(); #region record public class SupplierKeyProvisioningRecords { public string KeyID { get; set; } = string.Empty; public string M1 { get; set; } = string.Empty; public string M2 { get; set; } = string.Empty; public string M3 { get; set; } = string.Empty; public string M4 { get; set; } = string.Empty; public string M5 { get; set; } = string.Empty; } #endregion } // public class Request_SupplierKeyProvisioning_Result { public string ProvisioningType { get; set; } = "SecOCKey"; public string EcuID { get; set; } = string.Empty; public string KeyID { get; set; } = string.Empty; public string ResultMessage { get; set; } = string.Empty; public string ResultStatus { get; set; } = string.Empty; } public class Response_SupplierKeyProvisioning_Result : Response_Common { } // public class Request_SupplierKeySyncValue { public string ProvisioningType { get; set; } = "SecOCKey"; public string EcuID { get; set; } = string.Empty; public string KeyID { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue : Response_Common { public List Records { get; set; } = new List(); #region record public class SupplierKeySyncValueRecords { public string KeyID { get; set; } = string.Empty; public string KeySyncValue { get; set; } = string.Empty; public string Challenge { get; set; } = string.Empty; } #endregion } // public class Request_SupplierKeySyncValue_Result { public string ProvisioningType { get; set; } = "SecOCKey"; public string EcuID { get; set; } = string.Empty; public string KeyID { get; set; } = string.Empty; public string ResultMessage { get; set; } = string.Empty; public string ResultStatus { get; set; } = string.Empty; } public class Response_SupplierKeySyncValue_Result : Response_Common { } } #region common public class Response_Common { public string ResultStatus { get; set; } = string.Empty; public string ResultReason { get; set; } = string.Empty; public string ResultMessage { get; set; } = string.Empty; } #endregion }