Box.V2.Managers.BoxFilesManager.ViewVersionsAsync C# (CSharp) Метод

ViewVersionsAsync() публичный Метод

If there are previous versions of this file, this method can be used to retrieve metadata about the older versions. Versions are only tracked for Box users with premium accounts.
public ViewVersionsAsync ( string id, List fields = null ) : Task>
id string The file id.
fields List Attribute(s) to include in the response.
Результат Task>
        public async Task<BoxCollection<BoxFileVersion>> ViewVersionsAsync(string id, List<string> fields = null)
        {
            id.ThrowIfNullOrWhiteSpace("id");

            BoxRequest request = new BoxRequest(_config.FilesEndpointUri, string.Format(Constants.VersionsPathString, id))
                .Param(ParamFields, fields);

            IBoxResponse<BoxCollection<BoxFileVersion>> response = await ToResponseAsync<BoxCollection<BoxFileVersion>>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }