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.Controllers.Dispatch Class Reference

Dispatch Controller for direct access to Models. More...

Public Member Functions

 Dispatch (string appId, string appSecret, string refreshToken, string accessToken, RestClient restClient, string deviceId=null, string userAgent=null)
 Instantiate endpoint singletons. More...
 
void C_TokenUpdated (object sender, TokenUpdateEventArgs e)
 Propagate token across all models. More...
 
void C_RequestsUpdated (object sender, RequestsUpdateEventArgs e)
 Keep track of requests across all models. More...
 
void C_MonitoringUpdated (object sender, MonitoringUpdateEventArgs e)
 Update what's being monitored across all models. More...
 

Properties

API.Account Account [get, set]
 Account model. More...
 
API.Emoji Emoji [get, set]
 Emoji model. More...
 
API.Flair Flair [get, set]
 Flair model. More...
 
API.LinksAndComments LinksAndComments [get, set]
 LinksAndComments model. More...
 
API.Listings Listings [get, set]
 Listings model. More...
 
API.LiveThreads LiveThreads [get, set]
 LiveThreads model. More...
 
API.Misc Misc [get, set]
 Misc model. More...
 
API.Moderation Moderation [get, set]
 Moderation model. More...
 
API.Modmail Modmail [get, set]
 Modmail model. More...
 
API.Multis Multis [get, set]
 Multis model. More...
 
API.PrivateMessages PrivateMessages [get, set]
 PrivateMessages model. More...
 
API.RedditGold RedditGold [get, set]
 RedditGold model. More...
 
API.Search Search [get, set]
 Search model. More...
 
API.Subreddits Subreddits [get, set]
 Subreddits model. More...
 
API.Users Users [get, set]
 Users model. More...
 
API.Widgets Widgets [get, set]
 Widgets model. More...
 
API.Wiki Wiki [get, set]
 Wiki model. More...
 
API.OAuthCredentials OAuthCredentials [get, set]
 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...
 

Detailed Description

Dispatch Controller for direct access to Models.

Constructor & Destructor Documentation

◆ Dispatch()

Reddit.Controllers.Dispatch.Dispatch ( string  appId,
string  appSecret,
string  refreshToken,
string  accessToken,
RestClient  restClient,
string  deviceId = null,
string  userAgent = null 
)

Instantiate endpoint singletons.

Parameters
appIdThe OAuth application ID
appSecretThe OAuth application secret; this parameter is required for 'script' apps which use a secret to authenticate
refreshTokenThe OAuth refresh token required to obtain a Reddit API access token
accessTokenThe OAuth access token required to access the Reddit API
restClientA valid RestClient instance
deviceId(optional) A unique Device ID required for app-only authentication
userAgent(optional) A custom string for the User-Agent header

Member Function Documentation

◆ C_MonitoringUpdated()

void Reddit.Controllers.Dispatch.C_MonitoringUpdated ( object  sender,
MonitoringUpdateEventArgs  e 
)

Update what's being monitored across all models.

Parameters
senderThe sender
eA valid MonitoringUpdateEventArgs instance

◆ C_RequestsUpdated()

void Reddit.Controllers.Dispatch.C_RequestsUpdated ( object  sender,
RequestsUpdateEventArgs  e 
)

Keep track of requests across all models.

Parameters
senderThe sender
eA valid RequestsUpdateEventArgs instance

◆ C_TokenUpdated()

void Reddit.Controllers.Dispatch.C_TokenUpdated ( object  sender,
TokenUpdateEventArgs  e 
)

Propagate token across all models.

Parameters
senderThe sender
eA valid TokenUpdateEventArgs instance

Property Documentation

◆ Account

API.Account Reddit.Controllers.Dispatch.Account
getset

Account model.

◆ Emoji

API.Emoji Reddit.Controllers.Dispatch.Emoji
getset

Emoji model.

◆ Flair

API.Flair Reddit.Controllers.Dispatch.Flair
getset

Flair model.

◆ LinksAndComments

API.LinksAndComments Reddit.Controllers.Dispatch.LinksAndComments
getset

LinksAndComments model.

◆ Listings

API.Listings Reddit.Controllers.Dispatch.Listings
getset

Listings model.

◆ LiveThreads

API.LiveThreads Reddit.Controllers.Dispatch.LiveThreads
getset

LiveThreads model.

◆ Misc

API.Misc Reddit.Controllers.Dispatch.Misc
getset

Misc model.

◆ Moderation

API.Moderation Reddit.Controllers.Dispatch.Moderation
getset

Moderation model.

◆ Modmail

API.Modmail Reddit.Controllers.Dispatch.Modmail
getset

Modmail model.

◆ Multis

API.Multis Reddit.Controllers.Dispatch.Multis
getset

Multis model.

◆ OAuthCredentials

API.OAuthCredentials Reddit.Controllers.Dispatch.OAuthCredentials
getset

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.

◆ PrivateMessages

API.PrivateMessages Reddit.Controllers.Dispatch.PrivateMessages
getset

◆ RedditGold

API.RedditGold Reddit.Controllers.Dispatch.RedditGold
getset

RedditGold model.

◆ Search

API.Search Reddit.Controllers.Dispatch.Search
getset

Search model.

◆ Subreddits

API.Subreddits Reddit.Controllers.Dispatch.Subreddits
getset

Subreddits model.

◆ Users

API.Users Reddit.Controllers.Dispatch.Users
getset

Users model.

◆ Widgets

API.Widgets Reddit.Controllers.Dispatch.Widgets
getset

Widgets model.

◆ Wiki

API.Wiki Reddit.Controllers.Dispatch.Wiki
getset

Wiki model.


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