C# Class Wingur.BuisnessLayer.BLImgurAPI

Afficher le fichier Open project: ninijay/Wingur Class Usage Examples

Méthodes publiques

Méthode Description
GetGallery ( String section, String sort, System.Boolean Viral, Int32 Page, String OAuth = null ) : JsonObject

GetSubRedditGallery ( String Subreddit, String Sort, Int32 Page ) : Object
RefreshOAuth ( DataLayer Token ) : DataLayer.OAuthToken
logIn ( string username, String OAuth = null ) : DataLayer.ImgurUser

Private Methods

Méthode Description
GetHttpClient ( String OAuth = null ) : HttpClient

Method Details

GetGallery() public méthode

public GetGallery ( String section, String sort, System.Boolean Viral, Int32 Page, String OAuth = null ) : JsonObject
section String hot | top | user - defaults to hot
sort String viral | top | time | rising (only available with user section) - defaults to viral
Viral System.Boolean true | false - Show or hide viral images from the 'user' section. Defaults to true
Page System.Int32 integer - the data paging number
OAuth String OAuth Token - For user authentication
Résultat JsonObject

GetSubRedditGallery() public méthode

public GetSubRedditGallery ( String Subreddit, String Sort, Int32 Page ) : Object
Subreddit String
Sort String
Page System.Int32
Résultat Object

RefreshOAuth() public méthode

public RefreshOAuth ( DataLayer Token ) : DataLayer.OAuthToken
Token DataLayer
Résultat DataLayer.OAuthToken

logIn() public méthode

public logIn ( string username, String OAuth = null ) : DataLayer.ImgurUser
username string
OAuth String
Résultat DataLayer.ImgurUser