예제 #1
0
 /// <summary>
 /// Create a new user flair asynchronously.
 /// </summary>
 /// <param name="flairCreateInput">A valid FlairCreateInput instance</param>
 /// <param name="subreddit">The subreddit with the flairs</param>
 public async Task CreateFlairAsync(FlairCreateInput flairCreateInput, string subreddit = null)
 {
     Validate(await Dispatch.Flair.CreateAsync(flairCreateInput, subreddit));
 }
예제 #2
0
 /// <summary>
 /// Create a new user flair.
 /// </summary>
 /// <param name="flairCreateInput">A valid FlairCreateInput instance</param>
 /// <param name="subreddit">The subreddit with the flairs</param>
 public void CreateFlair(FlairCreateInput flairCreateInput, string subreddit = null)
 {
     Validate(Dispatch.Flair.Create(flairCreateInput, subreddit));
 }
예제 #3
0
 /// <summary>
 /// Create a new user flair asynchronously.
 /// </summary>
 /// <param name="flairCreateInput">A valid FlairCreateInput instance</param>
 public async Task CreateUserFlairAsync(FlairCreateInput flairCreateInput)
 {
     Validate(await Dispatch.Flair.CreateAsync(flairCreateInput, Subreddit));
 }
예제 #4
0
 /// <summary>
 /// Create a new user flair.
 /// </summary>
 /// <param name="flairCreateInput">A valid FlairCreateInput instance</param>
 public void CreateUserFlair(FlairCreateInput flairCreateInput)
 {
     Validate(Dispatch.Flair.Create(flairCreateInput, Subreddit));
 }
예제 #5
0
 /// <summary>
 /// Create a new flair asynchronously.
 /// </summary>
 /// <param name="flairCreateInput">a valid FlairCreateInput instance</param>
 /// <param name="subreddit">The subreddit with the flairs</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public async Task <GenericContainer> CreateAsync(FlairCreateInput flairCreateInput, string subreddit = null)
 {
     return(await SendRequestAsync <GenericContainer>(Sr(subreddit) + "api/flair", flairCreateInput, Method.POST));
 }
예제 #6
0
 // In the controllers, link flair can be created from Post.  User flair can be created from Subreddit or User (no practical difference).  --Kris
 /// <summary>
 /// Create a new flair.
 /// </summary>
 /// <param name="flairCreateInput">a valid FlairCreateInput instance</param>
 /// <param name="subreddit">The subreddit with the flairs</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public GenericContainer Create(FlairCreateInput flairCreateInput, string subreddit = null)
 {
     return(SendRequest <GenericContainer>(Sr(subreddit) + "api/flair", flairCreateInput, Method.POST));
 }