Ads API .NET library
|
Represents a report response from the server. More...
Public Member Functions | |
delegate void | OnDownloadSuccessCallback (byte[] contents) |
Delegate to be triggered when asynchronous report download is completed successfully. More... | |
delegate void | OnSaveSuccessCallback () |
Delegate to be triggered when asynchronous report save is completed successfully. More... | |
delegate void | OnFailedCallback (AdsReportsException exception) |
Delegate to be triggered when asynchronous report download fails. More... | |
ReportResponse (WebResponse response) | |
Initializes a new instance of the ReportResponse class. More... | |
void | Save (string path) |
Saves the report to a specified path and closes the underlying stream. More... | |
void | SaveAsync (string path) |
Saves the report to a specified path asynchronously and closes the underlying stream. OnSaveSuccess callback will be triggered when the download completes successfully, and OnFailed callback will be triggered when the download fails. More... | |
byte[] | Download () |
Downloads the report to memory and closes the underlying stream. More... | |
void | DownloadAsync () |
Downloads the report to memory asynchronously and closes the underlying stream. OnDownloadSuccess callback will be triggered when the download completes successfully, and OnFailed callback will be triggered when the download fails. More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Releases unmanaged and - optionally - managed resources. More... | |
Properties | |
OnDownloadSuccessCallback | OnDownloadSuccess [get, set] |
The callback that will be triggered when the asynchronous report download is completed successfully. More... | |
OnSaveSuccessCallback | OnSaveSuccess [get, set] |
The callback that will be triggered when the asynchronous report save is completed successfully. More... | |
OnFailedCallback | OnFailed [get, set] |
Gets the callback that will be triggered when the asynchronous report download fails. More... | |
Stream | Stream [get] |
Gets the report contents as a stream. More... | |
Stream | DecompressedStream [get] |
Gets the report contents as a decompressed stream. More... | |
string | Path [get, set] |
Gets the path to the downloaded report. More... | |
Represents a report response from the server.
|
inline |
Initializes a new instance of the ReportResponse class.
response | The underlying HTTP web response. |
|
inline |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
inlineprotectedvirtual |
Releases unmanaged and - optionally - managed resources.
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
|
inline |
Downloads the report to memory and closes the underlying stream.
AdsReportsException | If there was an error downloading the report. |
|
inline |
Downloads the report to memory asynchronously and closes the underlying stream. OnDownloadSuccess callback will be triggered when the download completes successfully, and OnFailed callback will be triggered when the download fails.
AdsReportsException | If there was an error downloading the report. |
delegate void Google.Api.Ads.Common.Util.Reports.ReportResponse.OnDownloadSuccessCallback | ( | byte[] | contents | ) |
Delegate to be triggered when asynchronous report download is completed successfully.
delegate void Google.Api.Ads.Common.Util.Reports.ReportResponse.OnFailedCallback | ( | AdsReportsException | exception | ) |
Delegate to be triggered when asynchronous report download fails.
delegate void Google.Api.Ads.Common.Util.Reports.ReportResponse.OnSaveSuccessCallback | ( | ) |
Delegate to be triggered when asynchronous report save is completed successfully.
|
inline |
Saves the report to a specified path and closes the underlying stream.
path | The path to which report is saved. |
AdsReportsException | If there was an error saving the report. |
|
inline |
Saves the report to a specified path asynchronously and closes the underlying stream. OnSaveSuccess callback will be triggered when the download completes successfully, and OnFailed callback will be triggered when the download fails.
path | The path to which report is saved. |
AdsReportsException | If there was an error saving the report. |
|
get |
Gets the report contents as a decompressed stream.
|
getset |
The callback that will be triggered when the asynchronous report download is completed successfully.
|
getset |
Gets the callback that will be triggered when the asynchronous report download fails.
|
getset |
The callback that will be triggered when the asynchronous report save is completed successfully.
|
getset |
Gets the path to the downloaded report.
|
get |
Gets the report contents as a stream.