Class StatisticClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
public class StatisticClient : ClientBase
Constructors
StatisticClient(Contract.IPictureparkServiceSettings, Http.HttpClient)
Declaration
public StatisticClient(Contract.IPictureparkServiceSettings configuration, Http.HttpClient httpClient)
Parameters
Picturepark.SDK.V1.Contract.IPictureparkServiceSettings
configuration
|
System.Net.Http.HttpClient
httpClient
|
Properties
JsonSerializerSettings
Declaration
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Newtonsoft.Json.JsonSerializerSettings
|
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
System.Boolean
|
Methods
AddContentEventsAsync(AddContentEventsRequest, CancellationToken)
Add content events
Declaration
public virtual async Task<BusinessProcess> AddContentEventsAsync(AddContentEventsRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
AddContentEventsRequest
request
Request |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
Business process |
Remarks
Supply additional events from external sources. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
ExportContentStatisticsAsync(ExportContentStatisticsRequest, CancellationToken)
Export content statistics
Declaration
public virtual async Task<BusinessProcess> ExportContentStatisticsAsync(ExportContentStatisticsRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
ExportContentStatisticsRequest
request
Request |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
Business process |
Remarks
Trigger export of statistical data for contents for further processing. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
GetSingleContentStatisticsAsync(String, IEnumerable<TimeSpan>, CancellationToken)
Retrieve single content statistics
Declaration
public virtual async Task<ContentStatisticsAggregated> GetSingleContentStatisticsAsync(string contentId, IEnumerable<TimeSpan> timeFrames = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
contentId
Id of Content |
System.Collections.Generic.IEnumerable<System.TimeSpan>
timeFrames
Optionally aggregate data for given time frames |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<ContentStatisticsAggregated>
|
ReadObjectResponseAsync<T>(Http.HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<StatisticClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(Http.HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
System.Net.Http.HttpResponseMessage
response
|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>>
headers
|
System.Threading.CancellationToken
cancellationToken
|
Returns
System.Threading.Tasks.Task<StatisticClient.ObjectResponseResult<T>>
|
Type Parameters
T
|
ResolveDownloadLinkAsync(String, CancellationToken)
Resolve download link
Declaration
public virtual async Task<DownloadLink> ResolveDownloadLinkAsync(string referenceId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.String
referenceId
Reference id |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<DownloadLink>
Download link information |
Remarks
Resolve an actual Url to download exported file from referenceId found on completed BusinessProcess.