C# Class ImgurNet.ApiEndpoints.NotifcationEndpoint

Inheritance: BaseEndpoint
Mostra file Open project: 0xdeafcafe/ImgurNet Class Usage Examples

Public Methods

Method Description
GetNotificationAsync ( string notificationId ) : Task>>

Get a specific notification

GetNotificationsAsync ( bool onlyShowNew = true ) : Task>

Get a list of all notifications from the authorized account

NotifcationEndpoint ( Imgur imgur ) : System

SetNotificationViewedAsync ( string notificationId ) : Task>

Marks a notification as viewed, this way it no longer shows up in the basic notification request

Method Details

GetNotificationAsync() public method

Get a specific notification
public GetNotificationAsync ( string notificationId ) : Task>>
notificationId string The notification to get data for
return Task>>

GetNotificationsAsync() public method

Get a list of all notifications from the authorized account
public GetNotificationsAsync ( bool onlyShowNew = true ) : Task>
onlyShowNew bool Only retrieve new notifications (un-viewed)
return Task>

NotifcationEndpoint() public method

public NotifcationEndpoint ( Imgur imgur ) : System
imgur Imgur
return System

SetNotificationViewedAsync() public method

Marks a notification as viewed, this way it no longer shows up in the basic notification request
public SetNotificationViewedAsync ( string notificationId ) : Task>
notificationId string The notification to mark as viewed
return Task>