C# Класс Imgur.API.Endpoints.Impl.CustomGalleryEndpoint

Custom Gallery related actions.
Наследование: EndpointBase, ICustomGalleryEndpoint
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CustomGalleryEndpoint System

Открытые методы

Метод Описание
AddCustomGalleryTagsAsync ( IEnumerable tags ) : Task

Add tags to a user's custom gallery. OAuth authentication required.

AddFilteredOutGalleryTagAsync ( string tag ) : Task

Add tags to filter out. OAuth authentication required.

CustomGalleryEndpoint ( IApiClient apiClient ) : System

Initializes a new instance of the CustomGalleryEndpoint class.

GetCustomGalleryAsync ( CustomGallerySortOrder sort = CustomGallerySortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task

View images for current user's custom gallery. OAuth authentication required.

GetCustomGalleryItemAsync ( string galleryItemId ) : Task

View a single item in a user's custom gallery. OAuth authentication required.

GetFilteredOutGalleryAsync ( CustomGallerySortOrder sort = CustomGallerySortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task

Retrieve user's filtered out gallery. OAuth authentication required.

RemoveCustomGalleryTagsAsync ( IEnumerable tags ) : Task

Remove tags from a custom gallery. OAuth authentication required.

RemoveFilteredOutGalleryTagAsync ( string tag ) : Task

Remove a filtered out tag. OAuth authentication required.

Приватные методы

Метод Описание
CustomGalleryEndpoint ( IApiClient apiClient, HttpClient httpClient ) : System

Initializes a new instance of the CustomGalleryEndpoint class.

Описание методов

AddCustomGalleryTagsAsync() публичный Метод

Add tags to a user's custom gallery. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public AddCustomGalleryTagsAsync ( IEnumerable tags ) : Task
tags IEnumerable The tags that should be added.
Результат Task

AddFilteredOutGalleryTagAsync() публичный Метод

Add tags to filter out. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public AddFilteredOutGalleryTagAsync ( string tag ) : Task
tag string The tag that should be filtered out.
Результат Task

CustomGalleryEndpoint() публичный Метод

Initializes a new instance of the CustomGalleryEndpoint class.
public CustomGalleryEndpoint ( IApiClient apiClient ) : System
apiClient IApiClient The type of client that will be used for authentication.
Результат System

GetCustomGalleryAsync() публичный Метод

View images for current user's custom gallery. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetCustomGalleryAsync ( CustomGallerySortOrder sort = CustomGallerySortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task
sort CustomGallerySortOrder The order that the gallery should be sorted by. Default: Viral
window TimeWindow The time period that should be used in filtering requests. Default: Week
page int Set the page number so you don't have to retrieve all the data at once. Default: null
Результат Task

GetCustomGalleryItemAsync() публичный Метод

View a single item in a user's custom gallery. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetCustomGalleryItemAsync ( string galleryItemId ) : Task
galleryItemId string The gallery item id.
Результат Task

GetFilteredOutGalleryAsync() публичный Метод

Retrieve user's filtered out gallery. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetFilteredOutGalleryAsync ( CustomGallerySortOrder sort = CustomGallerySortOrder.Viral, TimeWindow window = TimeWindow.Week, int page = null ) : Task
sort CustomGallerySortOrder The order that the gallery should be sorted by. Default: Viral
window TimeWindow The time period that should be used in filtering requests. Default: Week
page int Set the page number so you don't have to retrieve all the data at once. Default: null
Результат Task

RemoveCustomGalleryTagsAsync() публичный Метод

Remove tags from a custom gallery. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public RemoveCustomGalleryTagsAsync ( IEnumerable tags ) : Task
tags IEnumerable The tags that should be removed.
Результат Task

RemoveFilteredOutGalleryTagAsync() публичный Метод

Remove a filtered out tag. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public RemoveFilteredOutGalleryTagAsync ( string tag ) : Task
tag string The tag that should be removed.
Результат Task