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.Internal.Common Class Reference
Inheritance diagram for Reddit.Models.Internal.Common:
Reddit.Models.BaseModel Reddit.Models.Internal.Request

Public Member Functions

 Common (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null)
 
CommentContainer GetComments (string article, ListingsGetCommentsInput listingsGetCommentsInput, string subreddit=null)
 Get the comment tree for a given Link article. If supplied, comment is the ID36 of a comment in the comment tree for article. This comment will be the (highlighted) focal point of the returned view and context will be the number of parents shown. depth is the maximum depth of subtrees in the thread. limit is the maximum number of comments to return. See also: /api/morechildren and /api/comment. More...
 
PostContainer GetPost (string article, ListingsGetCommentsInput listingsGetCommentsInput, string subreddit=null)
 Get information on a given link via the comments endpoint. 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)
 
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< TokenUpdateEventArgsTokenUpdated
 
EventHandler< RequestsUpdateEventArgsRequestsUpdated
 

Constructor & Destructor Documentation

◆ Common()

Reddit.Models.Internal.Common.Common ( string  appId,
string  appSecret,
string  refreshToken,
string  accessToken,
ref RestClient  restClient,
string  deviceId = null 
)

Member Function Documentation

◆ GetComments()

CommentContainer Reddit.Models.Internal.Common.GetComments ( string  article,
ListingsGetCommentsInput  listingsGetCommentsInput,
string  subreddit = null 
)

Get the comment tree for a given Link article. If supplied, comment is the ID36 of a comment in the comment tree for article. This comment will be the (highlighted) focal point of the returned view and context will be the number of parents shown. depth is the maximum depth of subtrees in the thread. limit is the maximum number of comments to return. See also: /api/morechildren and /api/comment.

Parameters
articleID36 of a link
listingsGetCommentsInputA valid ListingsGetCommentsInput instance
subredditThe subreddit with the article
Returns
A post and comments tree.

◆ GetPost()

PostContainer Reddit.Models.Internal.Common.GetPost ( string  article,
ListingsGetCommentsInput  listingsGetCommentsInput,
string  subreddit = null 
)

Get information on a given link via the comments endpoint.

Parameters
articleID36 of a link
listingsGetCommentsInputA valid ListingsGetCommentsInput instance
subredditThe subreddit with the article
Returns
A post and comments tree.

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