From 75e659b2f27dfe54347b8377516a9cde273055a5 Mon Sep 17 00:00:00 2001 From: David Hornyak Date: Tue, 1 Nov 2016 12:28:57 +0100 Subject: [PATCH 1/2] Extend PhotoSearchOptions with the support for Styles. --- FlickrNet/Enums.cs | 25 ++++++++++++++++ FlickrNet/PhotoSearchOptions.cs | 8 ++++- FlickrNet/UtilityMethods.cs | 14 +++++++++ FlickrNetTest/PhotoSearchOptionsTests.cs | 37 ++++++++++++++++++++++++ FlickrNetTest/UtilityMethodsTests.cs | 36 +++++++++++++++++++++++ 5 files changed, 119 insertions(+), 1 deletion(-) diff --git a/FlickrNet/Enums.cs b/FlickrNet/Enums.cs index 27077059..ff30df5c 100644 --- a/FlickrNet/Enums.cs +++ b/FlickrNet/Enums.cs @@ -306,5 +306,30 @@ public enum PermissionAddMeta Everybody = 3 } + /// + /// An enumeration of photo styles. + /// + [Serializable] + public enum Style + { + /// + /// Black and white. + /// + BlackAndWhite = 0, + /// + /// Shallow depth of field. + /// + DepthOfField = 1, + + /// + /// Minimalist. + /// + Minimalism = 2, + + /// + /// Patterns. + /// + Pattern = 3 + } } diff --git a/FlickrNet/PhotoSearchOptions.cs b/FlickrNet/PhotoSearchOptions.cs index 767f156d..c8da3c7e 100644 --- a/FlickrNet/PhotoSearchOptions.cs +++ b/FlickrNet/PhotoSearchOptions.cs @@ -364,6 +364,11 @@ internal string SortOrderString /// public ICollection ColorCodes { get; set; } + /// + /// A collection of styles the search results will be filtered against. + /// + public ICollection