Box.V2.Managers.BoxFoldersManager.GetTrashItemsAsync C# (CSharp) Méthode

GetTrashItemsAsync() public méthode

Retrieves the files and/or folders that have been moved to the trash. Any attribute in the full files or folders objects can be passed in with the fields parameter to get specific attributes, and only those specific attributes back; otherwise, the mini format is returned for each item by default. Multiple attributes can be passed in using the fields parameter. Paginated results can be retrieved using the limit and offset parameters.
public GetTrashItemsAsync ( int limit, int offset, List fields = null, bool autoPaginate = false ) : Task>
limit int The maximum number of items to return
offset int The item at which to begin the response
fields List Attribute(s) to include in the response
autoPaginate bool Whether or not to auto-paginate to fetch all items; defaults to false.
Résultat Task>
        public async Task<BoxCollection<BoxItem>> GetTrashItemsAsync(int limit, int offset = 0, List<string> fields = null, bool autoPaginate=false)
        {
            BoxRequest request = new BoxRequest(_config.FoldersEndpointUri, Constants.TrashItemsPathString)
                .Param("limit", limit.ToString())
                .Param("offset", offset.ToString())
                .Param(ParamFields, fields);

            if (autoPaginate)
            {
                return await AutoPaginateLimitOffset<BoxItem>(request, limit);
            }
            else
            {
                IBoxResponse<BoxCollection<BoxItem>> response = await ToResponseAsync<BoxCollection<BoxItem>>(request).ConfigureAwait(false);
                return response.ResponseObject;
            }    
        }

Same methods

BoxFoldersManager::GetTrashItemsAsync ( string id, int limit, int offset, List fields = null ) : Task>