Exemplo n.º 1
0
 /// <summary>
 /// Change a contributor or contributor invite's permissions asynchronously.
 /// Requires the manage permission for this thread.
 /// Note that permissions overrides the previous value completely.
 /// </summary>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 public async Task SetContributorPermissionsAsync(LiveThreadsContributorInput liveThreadsContributorInput)
 {
     Validate(await Dispatch.LiveThreads.SetContributorPermissionsAsync(Id, liveThreadsContributorInput));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Asynchronously invite another user to contribute to the thread.
 /// Requires the manage permission for this thread. If the recipient accepts the invite, they will be granted the permissions specified.
 /// </summary>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 public async Task InviteContributorAsync(LiveThreadsContributorInput liveThreadsContributorInput)
 {
     Validate(await Dispatch.LiveThreads.InviteContributorAsync(Id, liveThreadsContributorInput));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Change a contributor or contributor invite's permissions.
 /// Requires the manage permission for this thread.
 /// Note that permissions overrides the previous value completely.
 /// </summary>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 public void SetContributorPermissions(LiveThreadsContributorInput liveThreadsContributorInput)
 {
     Validate(Dispatch.LiveThreads.SetContributorPermissions(Id, liveThreadsContributorInput));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Change a contributor or contributor invite's permissions asynchronously.
 /// Requires the manage permission for this thread.
 /// Note that permissions overrides the previous value completely.
 /// </summary>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 /// <param name="thread">id</param>
 public async Task SetLiveThreadPermissionsAsync(LiveThreadsContributorInput liveThreadsContributorInput, string thread = "")
 {
     await SetLiveThreadPermissionsAsync(liveThreadsContributorInput, thread);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Invite another user to contribute to the thread.
 /// Requires the manage permission for this thread. If the recipient accepts the invite, they will be granted the permissions specified.
 /// </summary>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 public void InviteContributor(LiveThreadsContributorInput liveThreadsContributorInput)
 {
     Validate(Dispatch.LiveThreads.InviteContributor(Id, liveThreadsContributorInput));
 }
Exemplo n.º 6
0
        /// <summary>
        /// Asynchronously invite another user to contribute to a live thread.
        /// Requires the manage permission for this thread. If the recipient accepts the invite, they will be granted the permissions specified.
        /// </summary>
        /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
        /// <param name="thread">id</param>
        public async Task InviteToLiveThreadAsync(LiveThreadsContributorInput liveThreadsContributorInput, string thread = "")
        {
            liveThreadsContributorInput.name = Name;

            Validate(await Dispatch.LiveThreads.InviteContributorAsync(thread, liveThreadsContributorInput));
        }
Exemplo n.º 7
0
 /// <summary>
 /// Change a contributor or contributor invite's permissions.
 /// Requires the manage permission for this thread.
 /// Note that permissions overrides the previous value completely.
 /// </summary>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 /// <param name="thread">id</param>
 public void SetLiveThreadPermissions(LiveThreadsContributorInput liveThreadsContributorInput, string thread = "")
 {
     SetLiveThreadPermissions(liveThreadsContributorInput, thread);
 }
Exemplo n.º 8
0
        /// <summary>
        /// Invite another user to contribute to a live thread.
        /// Requires the manage permission for this thread. If the recipient accepts the invite, they will be granted the permissions specified.
        /// </summary>
        /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
        /// <param name="thread">id</param>
        public void InviteToLiveThread(LiveThreadsContributorInput liveThreadsContributorInput, string thread = "")
        {
            liveThreadsContributorInput.name = Name;

            Validate(Dispatch.LiveThreads.InviteContributor(thread, liveThreadsContributorInput));
        }
Exemplo n.º 9
0
 /// <summary>
 /// Change a contributor or contributor invite's permissions asynchronously.
 /// Requires the manage permission for this thread.
 /// Note that permissions overrides the previous value completely.
 /// See also: /api/live/thread/invite_contributor and /api/live/thread/rm_contributor.
 /// </summary>
 /// <param name="thread">id</param>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public async Task <GenericContainer> SetContributorPermissionsAsync(string thread, LiveThreadsContributorInput liveThreadsContributorInput)
 {
     return(await SendRequestAsync <GenericContainer>("api/live/" + thread + "/set_contributor_permissions", liveThreadsContributorInput, Method.POST));
 }
Exemplo n.º 10
0
 /// <summary>
 /// Change a contributor or contributor invite's permissions.
 /// Requires the manage permission for this thread.
 /// Note that permissions overrides the previous value completely.
 /// See also: /api/live/thread/invite_contributor and /api/live/thread/rm_contributor.
 /// </summary>
 /// <param name="thread">id</param>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public GenericContainer SetContributorPermissions(string thread, LiveThreadsContributorInput liveThreadsContributorInput)
 {
     return(SendRequest <GenericContainer>("api/live/" + thread + "/set_contributor_permissions", liveThreadsContributorInput, Method.POST));
 }
Exemplo n.º 11
0
 /// <summary>
 /// Asynchronously invite another user to contribute to the thread.
 /// Requires the manage permission for this thread. If the recipient accepts the invite, they will be granted the permissions specified.
 /// See also: /api/live/thread/accept_contributor_invite, and /api/live/thread/rm_contributor_invite.
 /// </summary>
 /// <param name="thread">id</param>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public async Task <GenericContainer> InviteContributorAsync(string thread, LiveThreadsContributorInput liveThreadsContributorInput)
 {
     return(await SendRequestAsync <GenericContainer>("api/live/" + thread + "/invite_contributor", liveThreadsContributorInput, Method.POST));
 }
Exemplo n.º 12
0
 /// <summary>
 /// Invite another user to contribute to the thread.
 /// Requires the manage permission for this thread. If the recipient accepts the invite, they will be granted the permissions specified.
 /// See also: /api/live/thread/accept_contributor_invite, and /api/live/thread/rm_contributor_invite.
 /// </summary>
 /// <param name="thread">id</param>
 /// <param name="liveThreadsContributorInput">A valid LiveThreadsContributorInput instance</param>
 /// <returns>A generic response object indicating any errors.</returns>
 public GenericContainer InviteContributor(string thread, LiveThreadsContributorInput liveThreadsContributorInput)
 {
     return(SendRequest <GenericContainer>("api/live/" + thread + "/invite_contributor", liveThreadsContributorInput, Method.POST));
 }