-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3607b9
commit ca17fb4
Showing
2 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
11 changes: 5 additions & 6 deletions
11
src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IArtifact.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} |
40 changes: 20 additions & 20 deletions
40
src/Microsoft.Devices.HardwareDevCenterManager/Abstractions/IDevCenterHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |