C# 클래스 Imgur.API.Endpoints.Impl.NotificationEndpoint

Notification related actions.
상속: EndpointBase, INotificationEndpoint
파일 보기 프로젝트 열기: DamienDennehy/Imgur.API 1 사용 예제들

Private Properties

프로퍼티 타입 설명
NotificationEndpoint System

공개 메소드들

메소드 설명
GetNotificationAsync ( string notificationId ) : Task

Returns the data about a specific notification. OAuth authentication required.

GetNotificationsAsync ( bool newNotifications = true ) : Task

Returns all of the notifications for the user. OAuth authentication required.

MarkNotificationViewedAsync ( string notificationId ) : Task

Marks a notification as viewed. OAuth authentication required.

MarkNotificationsViewedAsync ( IEnumerable ids ) : Task

Marks notifications as viewed. OAuth authentication required.

NotificationEndpoint ( IApiClient apiClient ) : System

Initializes a new instance of the NotificationsEndpoint class.

비공개 메소드들

메소드 설명
NotificationEndpoint ( IApiClient apiClient, HttpClient httpClient ) : System

Initializes a new instance of the NotificationsEndpoint class.

메소드 상세

GetNotificationAsync() 공개 메소드

Returns the data about a specific notification. 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 GetNotificationAsync ( string notificationId ) : Task
notificationId string The notification id.
리턴 Task

GetNotificationsAsync() 공개 메소드

Returns all of the notifications for the user. 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 GetNotificationsAsync ( bool newNotifications = true ) : Task
newNotifications bool false for all notifications, true for only non-viewed notification. Default is true.
리턴 Task

MarkNotificationViewedAsync() 공개 메소드

Marks a notification as viewed. 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 MarkNotificationViewedAsync ( string notificationId ) : Task
notificationId string The notification id.
리턴 Task

MarkNotificationsViewedAsync() 공개 메소드

Marks notifications as viewed. 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 MarkNotificationsViewedAsync ( IEnumerable ids ) : Task
ids IEnumerable The notification id.
리턴 Task

NotificationEndpoint() 공개 메소드

Initializes a new instance of the NotificationsEndpoint class.
public NotificationEndpoint ( IApiClient apiClient ) : System
apiClient IApiClient The type of client that will be used for authentication.
리턴 System