コード例 #1
0
 /// <summary>
 /// Configure the thread asynchronously.
 /// Requires the settings permission for this thread.
 /// </summary>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 public async Task EditAsync(LiveThreadsConfigInput liveThreadsConfigInput)
 {
     Validate(await Dispatch.LiveThreads.EditAsync(Id, liveThreadsConfigInput));
 }
コード例 #2
0
 /// <summary>
 /// Create a new live thread asynchronously.
 /// </summary>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 public async Task <LiveThread> CreateAsync(LiveThreadsConfigInput liveThreadsConfigInput)
 {
     return(new LiveThread(Dispatch, Validate(await Dispatch.LiveThreads.CreateAsync(liveThreadsConfigInput)).JSON.Data.Id).About());
 }
コード例 #3
0
 /// <summary>
 /// Configure the thread.
 /// Requires the settings permission for this thread.
 /// </summary>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 public void Edit(LiveThreadsConfigInput liveThreadsConfigInput)
 {
     Validate(Dispatch.LiveThreads.Edit(Id, liveThreadsConfigInput));
 }
コード例 #4
0
 /// <summary>
 /// Create a new live thread.
 /// </summary>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 /// <returns>An instance of this class populated with data from the new live thread.</returns>
 public LiveThread Create(LiveThreadsConfigInput liveThreadsConfigInput)
 {
     return(new LiveThread(Dispatch, Validate(Dispatch.LiveThreads.Create(liveThreadsConfigInput)).JSON.Data.Id).About());
 }
コード例 #5
0
 /// <summary>
 /// Create a new live thread asynchronously.
 /// Once created, the initial settings can be modified with /api/live/thread/edit and new updates can be posted with /api/live/thread/update.
 /// </summary>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 /// <returns>A response object containing the ID of the newly-created live thread.</returns>
 public async Task <LiveThreadCreateResultContainer> CreateAsync(LiveThreadsConfigInput liveThreadsConfigInput)
 {
     return(await SendRequestAsync <LiveThreadCreateResultContainer>("api/live/create", liveThreadsConfigInput, Method.POST));
 }
コード例 #6
0
 /// <summary>
 /// Create a new live thread.
 /// Once created, the initial settings can be modified with /api/live/thread/edit and new updates can be posted with /api/live/thread/update.
 /// </summary>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 /// <returns>A response object containing the ID of the newly-created live thread.</returns>
 public LiveThreadCreateResultContainer Create(LiveThreadsConfigInput liveThreadsConfigInput)
 {
     return(SendRequest <LiveThreadCreateResultContainer>("api/live/create", liveThreadsConfigInput, Method.POST));
 }
コード例 #7
0
 /// <summary>
 /// Configure the thread asynchronously.
 /// Requires the settings permission for this thread.
 /// See also: /live/thread/about.json.
 /// </summary>
 /// <param name="thread">id</param>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public async Task <GenericContainer> EditAsync(string thread, LiveThreadsConfigInput liveThreadsConfigInput)
 {
     return(await SendRequestAsync <GenericContainer>("api/live/" + thread + "/edit", liveThreadsConfigInput, Method.POST));
 }
コード例 #8
0
 /// <summary>
 /// Configure the thread.
 /// Requires the settings permission for this thread.
 /// See also: /live/thread/about.json.
 /// </summary>
 /// <param name="thread">id</param>
 /// <param name="liveThreadsConfigInput">A valid LiveThreadsConfigInput instance</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public GenericContainer Edit(string thread, LiveThreadsConfigInput liveThreadsConfigInput)
 {
     return(SendRequest <GenericContainer>("api/live/" + thread + "/edit", liveThreadsConfigInput, Method.POST));
 }