/
GetCollectionsQuery.cs
66 lines (55 loc) · 2.01 KB
/
GetCollectionsQuery.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright (c) Bynder. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
using Bynder.Sdk.Query.Decoder;
namespace Bynder.Sdk.Query.Collection
{
using System.Collections.Generic;
using Bynder.Sdk.Api.Converters;
/// <summary>
/// Query to retrieve a list of collections
/// </summary>
public class GetCollectionsQuery
{
/// <summary>
/// Limit of results per request. Max 1000. Default 50.
/// </summary>
[ApiField("limit")]
public int? Limit { get; set; }
/// <summary>
/// Page to be retrieved.
/// </summary>
[ApiField("page")]
public int? Page { get; set; }
/// <summary>
/// <para>Desired order of returned collection set.</para>
/// <para>See <see cref="Bynder.Sdk.Model.OrderByType"/> for possible values.</para>
/// </summary>
[ApiField("orderBy")]
public string OrderBy { get; set; }
/// <summary>
/// List of collection ids. Will return the collection for each existing collection.
/// </summary>
[ApiField("ids", Converter = typeof(ListConverter))]
public IEnumerable<string> Ids { get; set; }
/// <summary>
/// Indicates whether or not the response should include count results.
/// </summary>
[ApiField("count")]
public bool? Count { get; set; }
/// <summary>
/// Search on matching names.
/// </summary>
[ApiField("keyword")]
public string Keyword { get; set; }
/// <summary>
/// Indicates whether or not the return should only contain collections marked as public.
/// </summary>
[ApiField("isPublic")]
public bool? IsPublic { get; set; }
/// <summary>
/// Minimum collectionCount that the returned collections should have.
/// </summary>
[ApiField("minCount")]
public int? MinCount { get; set; }
}
}