-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing TransformBaseUrl property on Media class and implemente…
…d Asset Usage operations. (#69) * Added missing TransformBaseUrl property on Media class. * Implemented Asset Usage operations * Update Bynder/Sdk/Query/Asset/AssetUsageQuery.cs Co-authored-by: Huib Piguillet <[email protected]> * Update Bynder/Sdk/Query/Asset/AssetUsageQuery.cs Co-authored-by: Huib Piguillet <[email protected]> * Update Bynder/Sdk/Service/Asset/AssetService.cs Co-authored-by: Huib Piguillet <[email protected]> * Update AssetUsageQuery.cs * Fixed, built and tested in VS Co-authored-by: Ruud van Falier <[email protected]> Co-authored-by: Huib Piguillet <[email protected]>
- Loading branch information
1 parent
926c5a9
commit b772d7d
Showing
6 changed files
with
150 additions
and
3 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using Bynder.Sdk.Api.Converters; | ||
using Bynder.Sdk.Query.Decoder; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Bynder.Sdk.Query.Asset | ||
{ | ||
/// <summary> | ||
/// Operation on the Asset Usage API. | ||
/// </summary> | ||
public class AssetUsageQuery | ||
{ | ||
/// <summary> | ||
/// Initializes the class with asset usage information. | ||
/// </summary> | ||
/// <param name="integrationId">ID of the integration that the usage applies to.</param> | ||
/// <param name="assetId">ID of the asset that the usage applies to.</param> | ||
public AssetUsageQuery(string integrationId, string assetId) | ||
{ | ||
IntegrationId = integrationId; | ||
AssetId = assetId; | ||
} | ||
|
||
/// <summary> | ||
/// ID of the integration that the usage applies to. | ||
/// </summary> | ||
[ApiField("integration_id")] | ||
public string IntegrationId { get; set; } | ||
|
||
/// <summary> | ||
/// ID of the asset that the usage applies to. | ||
/// </summary> | ||
[ApiField("asset_id")] | ||
public string AssetId { get; set; } | ||
|
||
/// <summary> | ||
/// Timestamp of the operation. | ||
/// </summary> | ||
[ApiField("timestamp", Converter = typeof(DateTimeOffsetConverter))] | ||
public DateTimeOffset? Timestamp { get; set; } | ||
|
||
/// <summary> | ||
/// Location of the asset usage. | ||
/// </summary> | ||
[ApiField("uri")] | ||
public string Uri { get; set; } | ||
|
||
/// <summary> | ||
/// Additional information. | ||
/// </summary> | ||
[ApiField("additional")] | ||
public string Additional { get; set; } | ||
} | ||
} |
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
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
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