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

Public Member Functions

 Search (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null, string userAgent=null)
 
GetSearch< T > (SearchGetSearchInput searchGetSearchInput, string subreddit=null)
 Search links page. This endpoint is a listing. More...
 
SubredditContainer SearchSubreddits (SearchGetSearchInput searchGetSearchInput, string subreddit=null)
 Search Reddit and return the results as subreddit listings. More...
 
PostContainer SearchPosts (SearchGetSearchInput searchGetSearchInput, string subreddit=null)
 Search Reddit and return the results as post listings. More...
 
UserContainer SearchUsers (SearchGetSearchInput searchGetSearchInput, string subreddit=null)
 Search Reddit and return the results as user listings. More...
 
MultiSearchResults MultiSearch (SearchGetSearchInput searchGetSearchInput, string subreddit=null)
 Search Reddit and return the results as mixed listings. Use this method if you're specifying multiple values for the "type" parameter. 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

◆ Search()

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

Member Function Documentation

◆ GetSearch< T >()

T Reddit.Models.Search.GetSearch< T > ( SearchGetSearchInput  searchGetSearchInput,
string  subreddit = null 
)

Search links page. This endpoint is a listing.

Parameters
searchGetSearchInputA valid SearchGetSearchInput instance
subredditThe subreddit being searched
Returns
A listing of things that match the search criteria.

◆ MultiSearch()

MultiSearchResults Reddit.Models.Search.MultiSearch ( SearchGetSearchInput  searchGetSearchInput,
string  subreddit = null 
)

Search Reddit and return the results as mixed listings. Use this method if you're specifying multiple values for the "type" parameter.

Parameters
searchGetSearchInputA valid SearchGetSearchInput instance
subredditThe subreddit being searched
Returns
A listing of things that match the search criteria.

◆ SearchPosts()

PostContainer Reddit.Models.Search.SearchPosts ( SearchGetSearchInput  searchGetSearchInput,
string  subreddit = null 
)

Search Reddit and return the results as post listings.

Parameters
searchGetSearchInputA valid SearchGetSearchInput instance
subredditThe subreddit being searched
Returns
A listing of posts that match the search criteria.

◆ SearchSubreddits()

SubredditContainer Reddit.Models.Search.SearchSubreddits ( SearchGetSearchInput  searchGetSearchInput,
string  subreddit = null 
)

Search Reddit and return the results as subreddit listings.

Parameters
searchGetSearchInputA valid SearchGetSearchInput instance
subredditThe subreddit being searched
Returns
A listing of subreddits that match the search criteria.

◆ SearchUsers()

UserContainer Reddit.Models.Search.SearchUsers ( SearchGetSearchInput  searchGetSearchInput,
string  subreddit = null 
)

Search Reddit and return the results as user listings.

Parameters
searchGetSearchInputA valid SearchGetSearchInput instance
subredditThe subreddit being searched
Returns
A listing of users that match the search criteria.

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