Skip to content

Commit

Permalink
update abstractions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Carpenter committed Feb 25, 2024
1 parent b3607b9 commit ca17fb4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -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; }
}
Original file line number Diff line number Diff line change
@@ -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<DevCenterResponse<bool>> CancelShippingLabel(string productId, string submissionId, string shippingLabelId);
Task<DevCenterResponse<bool>> CommitSubmission(string productId, string submissionId);
Task<DevCenterResponse<bool>> CreateMetaData(string productId, string submissionId);
Task<DevCenterResponse<Audience>> GetAudiences();
Task<DevCenterResponse<Submission>> GetPartnerSubmission(string publisherId, string productId, string submissionId);
Task<DevCenterResponse<Product>> GetProducts(string productId = null);
Task<DevCenterResponse<ShippingLabel>> GetShippingLabels(string productId, string submissionId, string shippingLabelId = null);
Task<DevCenterResponse<Submission>> GetSubmission(string productId, string submissionId = null);
Task<DevCenterResponse<Output>> HdcGet<Output>(string uri, bool isMany) where Output : IArtifact;
Task<DevCenterResponse<Output>> HdcPost<Output>(string uri, object input) where Output : IArtifact;
Task<DevCenterErrorDetails> InvokeHdcService(HttpMethod method, string uri, object input, Action<string> processContent);
Task<DevCenterResponse<Output>> InvokeHdcService<Output>(HttpMethod method, string uri, object input, bool isMany) where Output : IArtifact;
Task<DevCenterResponse<Product>> NewProduct(NewProduct input);
Task<DevCenterResponse<ShippingLabel>> NewShippingLabel(string productId, string submissionId, NewShippingLabel shippingLabelInfo);
Task<DevCenterResponse<Submission>> NewSubmission(string productId, NewSubmission submissionInfo);
}
Task<DevCenterResponse<bool>> CancelShippingLabel(string productId, string submissionId, string shippingLabelId);
Task<DevCenterResponse<bool>> CommitSubmission(string productId, string submissionId);
Task<DevCenterResponse<bool>> CreateMetaData(string productId, string submissionId);
Task<DevCenterResponse<Audience>> GetAudiences();
Task<DevCenterResponse<Submission>> GetPartnerSubmission(string publisherId, string productId, string submissionId);
Task<DevCenterResponse<Product>> GetProducts(string productId = null);
Task<DevCenterResponse<ShippingLabel>> GetShippingLabels(string productId, string submissionId, string shippingLabelId = null);
Task<DevCenterResponse<Submission>> GetSubmission(string productId, string submissionId = null);
Task<DevCenterResponse<Output>> HdcGet<Output>(string uri, bool isMany) where Output : IArtifact;
Task<DevCenterResponse<Output>> HdcPost<Output>(string uri, object input) where Output : IArtifact;
Task<DevCenterErrorDetails> InvokeHdcService(HttpMethod method, string uri, object input, Action<string> processContent);
Task<DevCenterResponse<Output>> InvokeHdcService<Output>(HttpMethod method, string uri, object input, bool isMany) where Output : IArtifact;
Task<DevCenterResponse<Product>> NewProduct(NewProduct input);
Task<DevCenterResponse<ShippingLabel>> NewShippingLabel(string productId, string submissionId, NewShippingLabel shippingLabelInfo);
Task<DevCenterResponse<Submission>> NewSubmission(string productId, NewSubmission submissionInfo);
}

0 comments on commit ca17fb4

Please sign in to comment.