/// <summary>
 /// Initializes a new instance of the <see cref="PrefetchMboxResponse" /> class.
 /// </summary>
 /// <param name="index">Indicates that the response is for mbox with the same index, as was specified in the prefetch or execute request. .</param>
 /// <param name="name">The name of the mbox. Since the same mbox name can be specified multiple times in the request it should be used in conjunction with the index. .</param>
 /// <param name="options">The option that was matched for the current mbox. Cannot be an offer with templates or a visual offer. .</param>
 /// <param name="metrics">Click metrics..</param>
 /// <param name="analytics">analytics.</param>
 /// <param name="trace">The object containing all trace data for the request, only present if the trace token was provided in the request. .</param>
 /// <param name="state">Mbox state token that must be sent back with display notification for the mbox..</param>
 public PrefetchMboxResponse(int?index = default(int?), string name = default(string), List <Option> options = default(List <Option>), List <Metric> metrics = default(List <Metric>), AnalyticsResponse analytics = default(AnalyticsResponse), Dictionary <string, Object> trace = default(Dictionary <string, Object>), string state = default(string))
 {
     this.Index     = index;
     this.Name      = name;
     this.Options   = options;
     this.Metrics   = metrics;
     this.Analytics = analytics;
     this.Trace     = trace;
     this.State     = state;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="View" /> class.
 /// </summary>
 /// <param name="name">View Name - Unique view name. If the activity has a metric with a view with this name it will be matched, providing the Key matches as well or is null and view and metric targeting is matched. .</param>
 /// <param name="key">View Key - An optional encoded String identifier used in advanced scenarios, such as View fingerprinting. Same matching conditions as for View Name. .</param>
 /// <param name="options">The prefetched content (options) to be displayed for the current view. .</param>
 /// <param name="metrics">Click track metrics for the current view. .</param>
 /// <param name="analytics">analytics.</param>
 /// <param name="state">View state token that must be sent back with display notification for the view..</param>
 /// <param name="trace">The object containing all trace data for the request, only present if the trace token was provided in the request. .</param>
 public View(string name = default(string), string key = default(string), List <Option> options = default(List <Option>), List <Metric> metrics = default(List <Metric>), AnalyticsResponse analytics = default(AnalyticsResponse), string state = default(string), Dictionary <string, Object> trace = default(Dictionary <string, Object>))
 {
     this.Name      = name;
     this.Key       = key;
     this.Options   = options;
     this.Metrics   = metrics;
     this.Analytics = analytics;
     this.State     = state;
     this.Trace     = trace;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PageLoadResponse" /> class.
 /// </summary>
 /// <param name="options">List of options that should be applied. Note: options that have been set on selectors assigned to views will not be included here. .</param>
 /// <param name="metrics">Click track metrics. Note that click metrics for selectors set with views will not be included here. In case the same activity is serving content for selectors both assinged to a view and selectors without any views, and having click track metrics that are not assotiated with any view within the activity, then:   * in case of a prefetch only request, these metrics (tokens) will be set in the Prefetch response&#39;s metrics.   * in case of an execute only request, the metrics will be set in the page load response&#39;s metrics.   * in case of a request, with both, execute and prefetch, metrics will be set in the page load response&#39;s     metrics only. .</param>
 /// <param name="analytics">analytics.</param>
 /// <param name="state">View state token that must be sent back with display notification for the view. May only be present for prefetch requests. .</param>
 /// <param name="trace">The object containing all trace data for the request, only present if the trace token was provided in the request. .</param>
 public PageLoadResponse(List <Option> options = default(List <Option>), List <Metric> metrics = default(List <Metric>), AnalyticsResponse analytics = default(AnalyticsResponse), string state = default(string), Dictionary <string, Object> trace = default(Dictionary <string, Object>))
 {
     this.Options   = options;
     this.Metrics   = metrics;
     this.Analytics = analytics;
     this.State     = state;
     this.Trace     = trace;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Metric" /> class.
 /// </summary>
 /// <param name="type">type.</param>
 /// <param name="selector">The selector.</param>
 /// <param name="eventToken">The event token that should be sent with the notifications in case the click occurred..</param>
 /// <param name="analytics">analytics.</param>
 public Metric(MetricType?type = default(MetricType?), string selector = default(string), string eventToken = default(string), AnalyticsResponse analytics = default(AnalyticsResponse))
 {
     this.Type       = type;
     this.Selector   = selector;
     this.EventToken = eventToken;
     this.Analytics  = analytics;
 }