-
Notifications
You must be signed in to change notification settings - Fork 2
/
GalleryObjectSearchOptions.cs
44 lines (38 loc) · 1.43 KB
/
GalleryObjectSearchOptions.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
using GalleryServerPro.Business.Interfaces;
namespace GalleryServerPro.Business
{
/// <summary>
/// An object that specifies options for retrieving gallery objects. Used in conjunction with the
/// <see cref="GalleryObjectSearcher" /> class.
/// </summary>
public class GalleryObjectSearchOptions
{
/// <summary>
/// Indicates the type of search being performed.
/// </summary>
public GalleryObjectSearchType SearchType;
/// <summary>
/// Specifies the tags to search for. Applies only when <see cref="SearchType" /> is
/// <see cref="GalleryObjectSearchType.SearchByTag" /> or <see cref="GalleryObjectSearchType.SearchByPeople" />.
/// </summary>
public string[] Tags;
/// <summary>
/// Specifies the text to search for. Applies only when <see cref="SearchType" /> is
/// <see cref="GalleryObjectSearchType.SearchByKeyword" />.
/// </summary>
public string[] SearchTerms;
/// <summary>
/// The gallery ID. Only items in this gallery are returned.
/// </summary>
public int GalleryId;
/// <summary>
/// The roles the current user belongs to. Required when <see cref="IsUserAuthenticated" />=<c>true</c>;
/// otherwise, the value can be left null.
/// </summary>
public IGalleryServerRoleCollection Roles;
/// <summary>
/// Indicates whether the current user has been authenticated.
/// </summary>
public bool IsUserAuthenticated;
}
}