/// <summary> /// <para>Begins an asynchronous send to the devices list team devices route.</para> /// </summary> /// <param name="cursor">At the first call to the <see /// cref="Dropbox.Api.Team.Routes.TeamRoutes.DevicesListTeamDevicesAsync" /> the cursor /// shouldn't be passed. Then, if the result of the call includes a cursor, the /// following requests should include the received cursors in order to receive the next /// sub list of team devices</param> /// <param name="includeWebSessions">Whether to list web sessions of the team /// members</param> /// <param name="includeDesktopClients">Whether to list desktop clients of the team /// members</param> /// <param name="includeMobileClients">Whether to list mobile clients of the team /// members</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 BeginDevicesListTeamDevices(string cursor = null, bool includeWebSessions = true, bool includeDesktopClients = true, bool includeMobileClients = true, sys.AsyncCallback callback = null, object callbackState = null) { var listTeamDevicesArg = new ListTeamDevicesArg(cursor, includeWebSessions, includeDesktopClients, includeMobileClients); return this.BeginDevicesListTeamDevices(listTeamDevicesArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the devices list team devices route.</para> /// </summary> /// <param name="listTeamDevicesArg">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 BeginDevicesListTeamDevices(ListTeamDevicesArg listTeamDevicesArg, sys.AsyncCallback callback, object state = null) { var task = this.DevicesListTeamDevicesAsync(listTeamDevicesArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>List all device sessions of a team.</para> /// </summary> /// <param name="cursor">At the first call to the <see /// cref="Dropbox.Api.Team.Routes.TeamRoutes.DevicesListTeamDevicesAsync" /> the cursor /// shouldn't be passed. Then, if the result of the call includes a cursor, the /// following requests should include the received cursors in order to receive the next /// sub list of team devices</param> /// <param name="includeWebSessions">Whether to list web sessions of the team /// members</param> /// <param name="includeDesktopClients">Whether to list desktop clients of the team /// members</param> /// <param name="includeMobileClients">Whether to list mobile clients of the team /// members</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{ListTeamDevicesError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="ListTeamDevicesError"/>.</exception> public t.Task<ListTeamDevicesResult> DevicesListTeamDevicesAsync(string cursor = null, bool includeWebSessions = true, bool includeDesktopClients = true, bool includeMobileClients = true) { var listTeamDevicesArg = new ListTeamDevicesArg(cursor, includeWebSessions, includeDesktopClients, includeMobileClients); return this.DevicesListTeamDevicesAsync(listTeamDevicesArg); }
/// <summary> /// <para>List all device sessions of a team.</para> /// </summary> /// <param name="listTeamDevicesArg">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{ListTeamDevicesError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="ListTeamDevicesError"/>.</exception> public t.Task<ListTeamDevicesResult> DevicesListTeamDevicesAsync(ListTeamDevicesArg listTeamDevicesArg) { return this.Transport.SendRpcRequestAsync<ListTeamDevicesArg, ListTeamDevicesResult, ListTeamDevicesError>(listTeamDevicesArg, "api", "/team/devices/list_team_devices", Dropbox.Api.Team.ListTeamDevicesArg.Encoder, Dropbox.Api.Team.ListTeamDevicesResult.Decoder, Dropbox.Api.Team.ListTeamDevicesError.Decoder); }