![]() |
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.
|
Public Member Functions | |
| PrivateMessages (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null, string userAgent=null) | |
| void | Block (string id) |
| For blocking the author of a thing via inbox. More... | |
| async Task | BlockAsync (string id) |
| For asynchronously blocking the author of a thing via inbox. More... | |
| void | CollapseMessage (string id) |
| Collapse a message. See also: /api/uncollapse_message More... | |
| async Task | CollapseMessageAsync (string id) |
| Collapse a message asynchronously. See also: /api/uncollapse_message More... | |
| GenericContainer | Compose (PrivateMessagesComposeInput privateMessagesComposeInput, string gRecaptchaResponse="") |
| Handles message composition under /message/compose. More... | |
| async Task< GenericContainer > | ComposeAsync (PrivateMessagesComposeInput privateMessagesComposeInput, string gRecaptchaResponse="") |
| Handles message composition asynchronously under /message/compose. More... | |
| void | DelMsg (string id) |
| Delete messages from the recipient's view of their inbox. More... | |
| async Task | DelMsgAsync (string id) |
| Delete messages from the recipient's view of their inbox asynchronously. More... | |
| void | ReadAllMessages (string filterTypes) |
| Queue up marking all messages for a user as read. This may take some time, and returns 202 to acknowledge acceptance of the request. More... | |
| async Task | ReadAllMessagesAsync (string filterTypes) |
| Asynchronously queue up marking all messages for a user as read. This may take some time, and returns 202 to acknowledge acceptance of the request. More... | |
| void | ReadMessage (string id) |
| Mark a message as read. More... | |
| async Task | ReadMessageAsync (string id) |
| Mark a message as read asynchronously. More... | |
| object | UnblockSubreddit (string id) |
| Unblock a subreddit. More... | |
| void | UncollapseMessage (string id) |
| Uncollapse a message. More... | |
| async Task | UncollapseMessageAsync (string id) |
| Uncollapse a message asynchronously. More... | |
| void | UnreadMessage (string id) |
| Mark a message as unread. More... | |
| async Task | UnreadMessageAsync (string id) |
| Mark a message as unread asynchronously. More... | |
| MessageContainer | GetMessages (string where, PrivateMessagesGetMessagesInput privateMessagesGetMessagesInput) |
| This endpoint is a listing. More... | |
Public Member Functions inherited from Reddit.Models.BaseModel | |
| BaseModel (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null, string userAgent=null) | |
| string | Sr (string subreddit) |
Public Member Functions inherited from Reddit.Models.Internal.Request | |
| Request (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null, string userAgent=null) | |
| T | SendRequest< T > (string url, dynamic parameters, Method method=Method.GET, string contentType="application/x-www-form-urlencoded") |
| async Task< T > | SendRequestAsync< T > (string url, dynamic parameters, Method method=Method.GET, string contentType="application/x-www-form-urlencoded") |
| RestRequest | PrepareIDRequest (string path, string id, Method method=Method.POST) |
| RestRequest | PrepareJSONRequest (string path, Method method=Method.POST) |
| RestRequest | PrepareRequest (string url, Method method=Method.GET, string contentType="application/x-www-form-urlencoded") |
| RestRequest | PrepareRequest (string url, Method method, List< Parameter > parameters, List< FileParameter > files, string contentType="application/x-www-form-urlencoded") |
| RestRequest | PrepareRequest (RestRequest restRequest, string contentType="application/x-www-form-urlencoded") |
| string | GetVersion () |
| string | ExecuteRequest (string url, Method method=Method.GET) |
| async Task< string > | ExecuteRequestAsync (string url, Method method=Method.GET) |
| string | ExecuteRequest (RestRequest restRequest) |
| async Task< string > | ExecuteRequestAsync (RestRequest restRequest) |
| void | UpdateAccessToken (string accessToken) |
| void | UpdateRequests (List< DateTime > requests) |
| void | AddParamIfNotNull (string name, dynamic value, ref RestRequest restRequest) |
Additional Inherited Members | |
Protected Member Functions inherited from Reddit.Models.Internal.Request | |
| virtual void | OnTokenUpdated (TokenUpdateEventArgs e) |
| virtual void | OnRequestsUpdated (RequestsUpdateEventArgs e) |
Events inherited from Reddit.Models.Internal.Request | |
| EventHandler< TokenUpdateEventArgs > | TokenUpdated |
| EventHandler< RequestsUpdateEventArgs > | RequestsUpdated |
| Reddit.Models.PrivateMessages.PrivateMessages | ( | string | appId, |
| string | appSecret, | ||
| string | refreshToken, | ||
| string | accessToken, | ||
| ref RestClient | restClient, | ||
| string | deviceId = null, |
||
| string | userAgent = null |
||
| ) |
| void Reddit.Models.PrivateMessages.Block | ( | string | id | ) |
For blocking the author of a thing via inbox.
| id | fullname of a thing |
| async Task Reddit.Models.PrivateMessages.BlockAsync | ( | string | id | ) |
For asynchronously blocking the author of a thing via inbox.
| id | fullname of a thing |
| void Reddit.Models.PrivateMessages.CollapseMessage | ( | string | id | ) |
Collapse a message. See also: /api/uncollapse_message
| id | A comma-separated list of thing fullnames |
| async Task Reddit.Models.PrivateMessages.CollapseMessageAsync | ( | string | id | ) |
Collapse a message asynchronously. See also: /api/uncollapse_message
| id | A comma-separated list of thing fullnames |
| GenericContainer Reddit.Models.PrivateMessages.Compose | ( | PrivateMessagesComposeInput | privateMessagesComposeInput, |
| string | gRecaptchaResponse = "" |
||
| ) |
Handles message composition under /message/compose.
| privateMessagesComposeInput | A valid PrivateMessagesComposeInput instance |
| gRecaptchaResponse |
| async Task<GenericContainer> Reddit.Models.PrivateMessages.ComposeAsync | ( | PrivateMessagesComposeInput | privateMessagesComposeInput, |
| string | gRecaptchaResponse = "" |
||
| ) |
Handles message composition asynchronously under /message/compose.
| privateMessagesComposeInput | A valid PrivateMessagesComposeInput instance |
| gRecaptchaResponse |
| void Reddit.Models.PrivateMessages.DelMsg | ( | string | id | ) |
Delete messages from the recipient's view of their inbox.
| id | fullname of a thing |
| async Task Reddit.Models.PrivateMessages.DelMsgAsync | ( | string | id | ) |
Delete messages from the recipient's view of their inbox asynchronously.
| id | fullname of a thing |
| MessageContainer Reddit.Models.PrivateMessages.GetMessages | ( | string | where, |
| PrivateMessagesGetMessagesInput | privateMessagesGetMessagesInput | ||
| ) |
This endpoint is a listing.
| where | One of (inbox, unread, sent) |
| privateMessagesGetMessagesInput | A valid PrivateMessagesGetMessagesInput instance |
| void Reddit.Models.PrivateMessages.ReadAllMessages | ( | string | filterTypes | ) |
Queue up marking all messages for a user as read. This may take some time, and returns 202 to acknowledge acceptance of the request.
| filterTypes | A comma-separated list of items |
| async Task Reddit.Models.PrivateMessages.ReadAllMessagesAsync | ( | string | filterTypes | ) |
Asynchronously queue up marking all messages for a user as read. This may take some time, and returns 202 to acknowledge acceptance of the request.
| filterTypes | A comma-separated list of items |
| void Reddit.Models.PrivateMessages.ReadMessage | ( | string | id | ) |
Mark a message as read.
| id | A comma-separated list of thing fullnames |
| async Task Reddit.Models.PrivateMessages.ReadMessageAsync | ( | string | id | ) |
Mark a message as read asynchronously.
| id | A comma-separated list of thing fullnames |
| object Reddit.Models.PrivateMessages.UnblockSubreddit | ( | string | id | ) |
Unblock a subreddit.
| id | fullname of a thing |
| void Reddit.Models.PrivateMessages.UncollapseMessage | ( | string | id | ) |
Uncollapse a message.
| id | A comma-separated list of thing fullnames |
| async Task Reddit.Models.PrivateMessages.UncollapseMessageAsync | ( | string | id | ) |
Uncollapse a message asynchronously.
| id | A comma-separated list of thing fullnames |
| void Reddit.Models.PrivateMessages.UnreadMessage | ( | string | id | ) |
Mark a message as unread.
| id | A comma-separated list of thing fullnames |
| async Task Reddit.Models.PrivateMessages.UnreadMessageAsync | ( | string | id | ) |
Mark a message as unread asynchronously.
| id | A comma-separated list of thing fullnames |