C# 클래스 ImgurNet.ApiEndpoints.NotifcationEndpoint

상속: BaseEndpoint
파일 보기 프로젝트 열기: 0xdeafcafe/ImgurNet 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

GetNotificationAsync() 공개 메소드

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

GetNotificationsAsync() 공개 메소드

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

NotifcationEndpoint() 공개 메소드

public NotifcationEndpoint ( Imgur imgur ) : System
imgur Imgur
리턴 System

SetNotificationViewedAsync() 공개 메소드

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
리턴 Task>