Reddit.NET  1.5
Reddit.NET is a .NET Standard library that provides easy access to the Reddit API with virtually no boilerplate code required.
Reddit.Models.OAuthCredentials Class Reference

Makes the Reddit OAuth credentials accessible to the calling app. Aside from populating these values for that reason, this class is not used by the library, itself. Each model class stores these credentials internally. More...

Public Member Functions

 OAuthCredentials (string appId=null, string appSecret=null, string refreshToken=null, string accessToken=null, string deviceId=null)
 
void UpdateAccessToken (string accessToken)
 

Properties

string AppID [get, set]
 
string AppSecret [get, set]
 
string RefreshToken [get, set]
 
string AccessToken [get, set]
 
string DeviceID [get, set]
 

Events

EventHandler< TokenUpdateEventArgsTokenUpdated
 

Detailed Description

Makes the Reddit OAuth credentials accessible to the calling app. Aside from populating these values for that reason, this class is not used by the library, itself. Each model class stores these credentials internally.

Constructor & Destructor Documentation

◆ OAuthCredentials()

Reddit.Models.OAuthCredentials.OAuthCredentials ( string  appId = null,
string  appSecret = null,
string  refreshToken = null,
string  accessToken = null,
string  deviceId = null 
)

Member Function Documentation

◆ UpdateAccessToken()

void Reddit.Models.OAuthCredentials.UpdateAccessToken ( string  accessToken)

Property Documentation

◆ AccessToken

string Reddit.Models.OAuthCredentials.AccessToken
getset

◆ AppID

string Reddit.Models.OAuthCredentials.AppID
getset

◆ AppSecret

string Reddit.Models.OAuthCredentials.AppSecret
getset

◆ DeviceID

string Reddit.Models.OAuthCredentials.DeviceID
getset

◆ RefreshToken

string Reddit.Models.OAuthCredentials.RefreshToken
getset

Event Documentation

◆ TokenUpdated

EventHandler<TokenUpdateEventArgs> Reddit.Models.OAuthCredentials.TokenUpdated

The documentation for this class was generated from the following file: