Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeliveryRequest" /> class.
 /// </summary>
 /// <param name="requestId">The request ID that will be returned in the response. In case it is not provided, an UUID is generated and returned automatically. .</param>
 /// <param name="impressionId">If not present it will be automatically generated (UUID). If present,  second and subsequent requests with the same id will not increment impressions to activities/metrics. Similar to page id. .</param>
 /// <param name="id">id.</param>
 /// <param name="environmentId">Valid client environment id. If not specified host will be determined base on the provided host..</param>
 /// <param name="property">property.</param>
 /// <param name="trace">trace.</param>
 /// <param name="context">context (required).</param>
 /// <param name="experienceCloud">experienceCloud.</param>
 /// <param name="execute">execute.</param>
 /// <param name="prefetch">prefetch.</param>
 /// <param name="telemetry">telemetry.</param>
 /// <param name="notifications">Notifications for the displayed content, clicked selectors, and/or visited views or mboxes..</param>
 /// <param name="qaMode">qaMode.</param>
 /// <param name="preview">preview.</param>
 public DeliveryRequest(string requestId = default(string), string impressionId = default(string), VisitorId id = default(VisitorId), long?environmentId = default(long?), Property property = default(Property), Trace trace = default(Trace), Context context = default(Context), ExperienceCloud experienceCloud = default(ExperienceCloud), ExecuteRequest execute = default(ExecuteRequest), PrefetchRequest prefetch = default(PrefetchRequest), Telemetry telemetry = default(Telemetry), List <Notification> notifications = default(List <Notification>), QAMode qaMode = default(QAMode), Preview preview = default(Preview))
 {
     // to ensure "context" is required (not null)
     this.Context         = context ?? throw new ArgumentNullException("context is a required property for DeliveryRequest and cannot be null");
     this.RequestId       = requestId;
     this.ImpressionId    = impressionId;
     this.Id              = id;
     this.EnvironmentId   = environmentId;
     this.Property        = property;
     this.Trace           = trace;
     this.ExperienceCloud = experienceCloud;
     this.Execute         = execute;
     this.Prefetch        = prefetch;
     this.Telemetry       = telemetry;
     this.Notifications   = notifications;
     this.QaMode          = qaMode;
     this.Preview         = preview;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeliveryResponse" /> class.
 /// </summary>
 /// <param name="status">status.</param>
 /// <param name="requestId">ID of the processed request. If it&#39;s not sent in the request, a random ID (UUID) is generated and returned with the response. .</param>
 /// <param name="id">id.</param>
 /// <param name="_client">Client&#39;s code. The one which was sent in the request&#39;s path..</param>
 /// <param name="edgeHost">Cluster host name that served the response. Ideally, all subsequent requests should be made to that host..</param>
 /// <param name="execute">execute.</param>
 /// <param name="prefetch">prefetch.</param>
 /// <param name="notifications">notifications.</param>
 public DeliveryResponse(int?status = default(int?), string requestId = default(string), VisitorId id = default(VisitorId), string _client = default(string), string edgeHost = default(string), ExecuteResponse execute = default(ExecuteResponse), PrefetchResponse prefetch = default(PrefetchResponse), NotificationResponse notifications = default(NotificationResponse))
 {
     this.Status        = status;
     this.RequestId     = requestId;
     this.Id            = id;
     this._Client       = _client;
     this.EdgeHost      = edgeHost;
     this.Execute       = execute;
     this.Prefetch      = prefetch;
     this.Notifications = notifications;
 }