예제 #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the groups list route.</para>
        /// </summary>
        /// <param name="limit">Number of results to return per call.</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 BeginGroupsList(uint limit = 1000,
                                                sys.AsyncCallback callback = null,
                                                object callbackState = null)
        {
            var groupsListArg = new GroupsListArg(limit);

            return this.BeginGroupsList(groupsListArg, callback, callbackState);
        }
예제 #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the groups list route.</para>
        /// </summary>
        /// <param name="groupsListArg">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 BeginGroupsList(GroupsListArg groupsListArg, sys.AsyncCallback callback, object state = null)
        {
            var task = this.GroupsListAsync(groupsListArg);

            return enc.Util.ToApm(task, callback, state);
        }
예제 #3
0
        /// <summary>
        /// <para>Lists groups on a team.</para>
        /// <para>Permission : Team Information</para>
        /// </summary>
        /// <param name="limit">Number of results to return per call.</param>
        /// <returns>The task that represents the asynchronous send operation. The TResult
        /// parameter contains the response from the server.</returns>
        public t.Task<GroupsListResult> GroupsListAsync(uint limit = 1000)
        {
            var groupsListArg = new GroupsListArg(limit);

            return this.GroupsListAsync(groupsListArg);
        }
예제 #4
0
 /// <summary>
 /// <para>Lists groups on a team.</para>
 /// <para>Permission : Team Information</para>
 /// </summary>
 /// <param name="groupsListArg">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<GroupsListResult> GroupsListAsync(GroupsListArg groupsListArg)
 {
     return this.Transport.SendRpcRequestAsync<GroupsListArg, GroupsListResult, enc.Empty>(groupsListArg, "api", "/team/groups/list", Dropbox.Api.Team.GroupsListArg.Encoder, Dropbox.Api.Team.GroupsListResult.Decoder, enc.EmptyDecoder.Instance);
 }