/// <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)); }
/// <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)); }
/// <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)); }
/// <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); }
/// <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)); }
/// <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)); }
/// <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); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }