Interface IDownloadResponse<TResponse>
Used to encapsulate both the response object and the response body from a download operation.
Inherited Members
Namespace: Dropbox.Api.Stone
Assembly: Dropbox.Api.dll
Syntax
public interface IDownloadResponse<TResponse> : IDisposable
Type Parameters
| Name | Description |
|---|---|
| TResponse | The type of the response. |
Properties
View SourceResponse
Gets the response.
Declaration
TResponse Response { get; }
Property Value
| Type | Description |
|---|---|
| TResponse | The response. |
Methods
View SourceGetContentAsByteArrayAsync()
Asynchronously gets the content as a byte array.
Declaration
Task<byte[]> GetContentAsByteArrayAsync()
Returns
| Type | Description |
|---|---|
| Task<byte[]> | The downloaded content as a byte array. |
GetContentAsStreamAsync()
Asynchronously gets the content as a Stream.
Declaration
Task<Stream> GetContentAsStreamAsync()
Returns
| Type | Description |
|---|---|
| Task<Stream> | The downloaded content as a stream. |
GetContentAsStringAsync()
Asynchronously gets the content as string.
Declaration
Task<string> GetContentAsStringAsync()
Returns
| Type | Description |
|---|---|
| Task<string> | The downloaded content as a string. |