Example #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the members add route.</para>
        /// </summary>
        /// <param name="newMembers">Details of new members to be added to the team.</param>
        /// <param name="forceAsync">Whether to force the add to happen asynchronously.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="callbackState">A user provided object that distinguished this send
        /// from other send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginMembersAdd(col.IEnumerable<MemberAddArg> newMembers,
                                                bool forceAsync = false,
                                                sys.AsyncCallback callback = null,
                                                object callbackState = null)
        {
            var membersAddArg = new MembersAddArg(newMembers,
                                                  forceAsync);

            return this.BeginMembersAdd(membersAddArg, callback, callbackState);
        }
Example #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the members add route.</para>
        /// </summary>
        /// <param name="membersAddArg">The request parameters.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="state">A user provided object that distinguished this send from other
        /// send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginMembersAdd(MembersAddArg membersAddArg, sys.AsyncCallback callback, object state = null)
        {
            var task = this.MembersAddAsync(membersAddArg);

            return enc.Util.ToApm(task, callback, state);
        }
Example #3
0
        /// <summary>
        /// <para>Adds members to a team.</para>
        /// <para>Permission : Team member management</para>
        /// <para>A maximum of 20 members can be specified in a single call.</para>
        /// <para>If no Dropbox account exists with the email address specified, a new Dropbox
        /// account will be created with the given email address, and that account will be
        /// invited to the team.</para>
        /// <para>If a personal Dropbox account exists with the email address specified in the
        /// call, this call will create a placeholder Dropbox account for the user on the team
        /// and send an email inviting the user to migrate their existing personal account onto
        /// the team.</para>
        /// <para>Team member management apps are required to set an initial given_name and
        /// surname for a user to use in the team invitation and for 'Perform as team member'
        /// actions taken on the user before they become 'active'.</para>
        /// </summary>
        /// <param name="newMembers">Details of new members to be added to the team.</param>
        /// <param name="forceAsync">Whether to force the add to happen asynchronously.</param>
        /// <returns>The task that represents the asynchronous send operation. The TResult
        /// parameter contains the response from the server.</returns>
        public t.Task<MembersAddLaunch> MembersAddAsync(col.IEnumerable<MemberAddArg> newMembers,
                                                        bool forceAsync = false)
        {
            var membersAddArg = new MembersAddArg(newMembers,
                                                  forceAsync);

            return this.MembersAddAsync(membersAddArg);
        }
Example #4
0
 /// <summary>
 /// <para>Adds members to a team.</para>
 /// <para>Permission : Team member management</para>
 /// <para>A maximum of 20 members can be specified in a single call.</para>
 /// <para>If no Dropbox account exists with the email address specified, a new Dropbox
 /// account will be created with the given email address, and that account will be
 /// invited to the team.</para>
 /// <para>If a personal Dropbox account exists with the email address specified in the
 /// call, this call will create a placeholder Dropbox account for the user on the team
 /// and send an email inviting the user to migrate their existing personal account onto
 /// the team.</para>
 /// <para>Team member management apps are required to set an initial given_name and
 /// surname for a user to use in the team invitation and for 'Perform as team member'
 /// actions taken on the user before they become 'active'.</para>
 /// </summary>
 /// <param name="membersAddArg">The request parameters</param>
 /// <returns>The task that represents the asynchronous send operation. The TResult
 /// parameter contains the response from the server.</returns>
 public t.Task<MembersAddLaunch> MembersAddAsync(MembersAddArg membersAddArg)
 {
     return this.Transport.SendRpcRequestAsync<MembersAddArg, MembersAddLaunch, enc.Empty>(membersAddArg, "api", "/team/members/add", Dropbox.Api.Team.MembersAddArg.Encoder, Dropbox.Api.Team.MembersAddLaunch.Decoder, enc.EmptyDecoder.Instance);
 }