Esempio n. 1
0
 /// <summary>
 /// Keep track of requests across all models.
 /// </summary>
 /// <param name="sender">The sender</param>
 /// <param name="e">A valid RequestsUpdateEventArgs instance</param>
 public void C_RequestsUpdated(object sender, RequestsUpdateEventArgs e)
 {
     Account.UpdateRequests(e.Requests);
     Emoji.UpdateRequests(e.Requests);
     Flair.UpdateRequests(e.Requests);
     LinksAndComments.UpdateRequests(e.Requests);
     Listings.UpdateRequests(e.Requests);
     LiveThreads.UpdateRequests(e.Requests);
     Misc.UpdateRequests(e.Requests);
     Moderation.UpdateRequests(e.Requests);
     Modmail.UpdateRequests(e.Requests);
     Multis.UpdateRequests(e.Requests);
     PrivateMessages.UpdateRequests(e.Requests);
     RedditGold.UpdateRequests(e.Requests);
     Search.UpdateRequests(e.Requests);
     Subreddits.UpdateRequests(e.Requests);
     Users.UpdateRequests(e.Requests);
     Widgets.UpdateRequests(e.Requests);
     Wiki.UpdateRequests(e.Requests);
 }
Esempio n. 2
0
 /// <summary>
 /// Propagate token across all models.
 /// </summary>
 /// <param name="sender">The sender</param>
 /// <param name="e">A valid TokenUpdateEventArgs instance</param>
 public void C_TokenUpdated(object sender, TokenUpdateEventArgs e)
 {
     Account.UpdateAccessToken(e.AccessToken);
     Emoji.UpdateAccessToken(e.AccessToken);
     Flair.UpdateAccessToken(e.AccessToken);
     LinksAndComments.UpdateAccessToken(e.AccessToken);
     Listings.UpdateAccessToken(e.AccessToken);
     LiveThreads.UpdateAccessToken(e.AccessToken);
     Misc.UpdateAccessToken(e.AccessToken);
     Moderation.UpdateAccessToken(e.AccessToken);
     Modmail.UpdateAccessToken(e.AccessToken);
     Multis.UpdateAccessToken(e.AccessToken);
     OAuthCredentials.UpdateAccessToken(e.AccessToken);
     PrivateMessages.UpdateAccessToken(e.AccessToken);
     RedditGold.UpdateAccessToken(e.AccessToken);
     Search.UpdateAccessToken(e.AccessToken);
     Subreddits.UpdateAccessToken(e.AccessToken);
     Users.UpdateAccessToken(e.AccessToken);
     Widgets.UpdateAccessToken(e.AccessToken);
     Wiki.UpdateAccessToken(e.AccessToken);
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a new Account instance.  Note that this is already taken care of in the main class.
 /// </summary>
 /// <param name="dispatch"></param>
 public Account(Dispatch dispatch)
 {
     Dispatch = dispatch;
     Messages = new PrivateMessages(Dispatch);
     Modmail  = new Modmail(Dispatch);
 }