/// <summary> /// <para>Begins an asynchronous send to the groups create route.</para> /// </summary> /// <param name="groupName">Group name.</param> /// <param name="groupExternalId">Optional argument. The creator of a team can /// associate an arbitrary external ID to the group.</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 BeginGroupsCreate(string groupName, string groupExternalId = null, sys.AsyncCallback callback = null, object callbackState = null) { var groupCreateArg = new GroupCreateArg(groupName, groupExternalId); return this.BeginGroupsCreate(groupCreateArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the groups create route.</para> /// </summary> /// <param name="groupCreateArg">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 BeginGroupsCreate(GroupCreateArg groupCreateArg, sys.AsyncCallback callback, object state = null) { var task = this.GroupsCreateAsync(groupCreateArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Creates a new, empty group, with a requested name.</para> /// <para>Permission : Team member management</para> /// </summary> /// <param name="groupName">Group name.</param> /// <param name="groupExternalId">Optional argument. The creator of a team can /// associate an arbitrary external ID to the group.</param> /// <returns>The task that represents the asynchronous send operation. The TResult /// parameter contains the response from the server.</returns> /// <exception cref="Dropbox.Api.ApiException{GroupCreateError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GroupCreateError"/>.</exception> public t.Task<GroupFullInfo> GroupsCreateAsync(string groupName, string groupExternalId = null) { var groupCreateArg = new GroupCreateArg(groupName, groupExternalId); return this.GroupsCreateAsync(groupCreateArg); }
/// <summary> /// <para>Creates a new, empty group, with a requested name.</para> /// <para>Permission : Team member management</para> /// </summary> /// <param name="groupCreateArg">The request parameters</param> /// <returns>The task that represents the asynchronous send operation. The TResult /// parameter contains the response from the server.</returns> /// <exception cref="Dropbox.Api.ApiException{GroupCreateError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GroupCreateError"/>.</exception> public t.Task<GroupFullInfo> GroupsCreateAsync(GroupCreateArg groupCreateArg) { return this.Transport.SendRpcRequestAsync<GroupCreateArg, GroupFullInfo, GroupCreateError>(groupCreateArg, "api", "/team/groups/create", Dropbox.Api.Team.GroupCreateArg.Encoder, Dropbox.Api.Team.GroupFullInfo.Decoder, Dropbox.Api.Team.GroupCreateError.Decoder); }