-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* targetframework now net8.0, packages upgraded * Make it possible to get a list of tags by keyword * Allow changing tags of an existing Media item * Make it possible to remove tags from an asset * changed TagsSample to showcase the new tags-related features * updated gitignore * updated gitignore to the toptotal standard, added launchSettings to help developers run the samples * fixed merge conflict
- Loading branch information
1 parent
b87e130
commit 1ecd14f
Showing
7 changed files
with
166 additions
and
49 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 |
---|---|---|
@@ -1,41 +1,44 @@ | ||
using Bynder.Sdk.Api.Converters; | ||
using Bynder.Sdk.Model; | ||
using Bynder.Sdk.Query.Decoder; | ||
|
||
namespace Bynder.Sdk.Query.Asset | ||
using Bynder.Sdk.Query.Decoder; | ||
|
||
namespace Bynder.Sdk.Query.Asset | ||
{ | ||
public class GetTagsQuery | ||
{ | ||
/// <summary> | ||
/// Maximum number of results. | ||
/// </summary> | ||
[ApiField("limit")] | ||
public int Limit { get; set; } | ||
|
||
/// <summary> | ||
/// Offset page for results: return the N-th set of limit-results. | ||
/// </summary> | ||
[ApiField("page")] | ||
public int Page { get; set; } | ||
|
||
/// <summary> | ||
/// <para>Order of the returned list of tags. </para> | ||
/// <para>See <see cref="TagsOrderBy"/> for possible values.</para> | ||
/// </summary> | ||
[ApiField("orderBy", Converter = typeof(TagsOrderByConverter))] | ||
public TagsOrderBy OrderBy { get; set; } | ||
|
||
/// <summary> | ||
/// Search on matching names. | ||
/// </summary> | ||
[ApiField("keyword")] | ||
public string Keyword { get; set; } | ||
|
||
/// <summary> | ||
/// Minimum media count that the returned tags should have. | ||
/// </summary> | ||
[ApiField("mincount")] | ||
public int MinCount { get; set; } | ||
|
||
} | ||
} | ||
public class GetTagsQuerySimple | ||
{ | ||
/// <summary> | ||
/// Maximum number of results. | ||
/// </summary> | ||
[ApiField("limit")] | ||
public int Limit { get; set; } | ||
|
||
/// <summary> | ||
/// Offset page for results: return the N-th set of limit-results. | ||
/// </summary> | ||
[ApiField("page")] | ||
public int Page { get; set; } | ||
|
||
/// <summary> | ||
/// <para>Order of the returned list of tags. </para> | ||
/// <para>See <see cref="TagsOrderBy"/> for possible values.</para> | ||
/// </summary> | ||
[ApiField("orderBy", Converter = typeof(TagsOrderByConverter))] | ||
public TagsOrderBy OrderBy { get; set; } | ||
|
||
/// <summary> | ||
/// Search on matching names. | ||
/// </summary> | ||
[ApiField("keyword")] | ||
public string Keyword { get; set; } | ||
} | ||
public class GetTagsQuery : GetTagsQuerySimple | ||
{ | ||
|
||
/// <summary> | ||
/// Minimum media count that the returned tags should have. | ||
/// </summary> | ||
[ApiField("mincount")] | ||
public int MinCount { 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
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