diff --git a/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IArtifact.cs b/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IArtifact.cs index e1a28f4..1a9035b 100644 --- a/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IArtifact.cs +++ b/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IArtifact.cs @@ -1,13 +1,12 @@ /*++ Copyright (c) Microsoft Corporation. All rights reserved. - Licensed under the MIT license. See LICENSE file in the project root for full license information. + Licensed under the MIT license. See LICENSE file in the project root for full license information. --*/ -namespace Microsoft.Devices.HardwareDevCenterManager.DevCenterApi +namespace Microsoft.Devices.HardwareDevCenterManager.DevCenterApi; + +public interface IArtifact { - public interface IArtifact - { - string Id { get; set; } - } + string Id { get; set; } } diff --git a/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IDevCenterHandler.cs b/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IDevCenterHandler.cs index c380025..613f31a 100644 --- a/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IDevCenterHandler.cs +++ b/src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IDevCenterHandler.cs @@ -1,30 +1,30 @@ /*++ Copyright (c) Microsoft Corporation. All rights reserved. - Licensed under the MIT license. See LICENSE file in the project root for full license information. + Licensed under the MIT license. See LICENSE file in the project root for full license information. --*/ + using System; using System.Net.Http; using System.Threading.Tasks; -namespace Microsoft.Devices.HardwareDevCenterManager.DevCenterApi +namespace Microsoft.Devices.HardwareDevCenterManager.DevCenterApi; + +public interface IDevCenterHandler { - public interface IDevCenterHandler - { - Task> CancelShippingLabel(string productId, string submissionId, string shippingLabelId); - Task> CommitSubmission(string productId, string submissionId); - Task> CreateMetaData(string productId, string submissionId); - Task> GetAudiences(); - Task> GetPartnerSubmission(string publisherId, string productId, string submissionId); - Task> GetProducts(string productId = null); - Task> GetShippingLabels(string productId, string submissionId, string shippingLabelId = null); - Task> GetSubmission(string productId, string submissionId = null); - Task> HdcGet(string uri, bool isMany) where Output : IArtifact; - Task> HdcPost(string uri, object input) where Output : IArtifact; - Task InvokeHdcService(HttpMethod method, string uri, object input, Action processContent); - Task> InvokeHdcService(HttpMethod method, string uri, object input, bool isMany) where Output : IArtifact; - Task> NewProduct(NewProduct input); - Task> NewShippingLabel(string productId, string submissionId, NewShippingLabel shippingLabelInfo); - Task> NewSubmission(string productId, NewSubmission submissionInfo); - } + Task> CancelShippingLabel(string productId, string submissionId, string shippingLabelId); + Task> CommitSubmission(string productId, string submissionId); + Task> CreateMetaData(string productId, string submissionId); + Task> GetAudiences(); + Task> GetPartnerSubmission(string publisherId, string productId, string submissionId); + Task> GetProducts(string productId = null); + Task> GetShippingLabels(string productId, string submissionId, string shippingLabelId = null); + Task> GetSubmission(string productId, string submissionId = null); + Task> HdcGet(string uri, bool isMany) where Output : IArtifact; + Task> HdcPost(string uri, object input) where Output : IArtifact; + Task InvokeHdcService(HttpMethod method, string uri, object input, Action processContent); + Task> InvokeHdcService(HttpMethod method, string uri, object input, bool isMany) where Output : IArtifact; + Task> NewProduct(NewProduct input); + Task> NewShippingLabel(string productId, string submissionId, NewShippingLabel shippingLabelInfo); + Task> NewSubmission(string productId, NewSubmission submissionInfo); } \ No newline at end of file