Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Batch" /> class.
 /// </summary>
 /// <param name="sourceRequestId">sourceRequestId.</param>
 /// <param name="context">context.</param>
 /// <param name="events">Provide a list of event objects - such as CustomEvent, ScreenViewEvent, or CommerceEvent.</param>
 /// <param name="deviceInfo">deviceInfo.</param>
 /// <param name="applicationInfo">applicationInfo.</param>
 /// <param name="userAttributes">userAttributes.</param>
 /// <param name="deletedUserAttributes">deletedUserAttributes.</param>
 /// <param name="userIdentities">userIdentities.</param>
 /// <param name="environment">environment (required) (default to EnvironmentEnum.Production).</param>
 /// <param name="ip">ip.</param>
 /// <param name="integrationAttributes">integrationAttributes.</param>
 /// <param name="partnerIdentity">partnerIdentity.</param>
 /// <param name="sourceInfo">sourceInfo.</param>
 /// <param name="mpDeviceid">mpDeviceid.</param>
 /// <param name="attributionInfo">attributionInfo.</param>
 /// <param name="timestampUnixtimeMs">timestampUnixtimeMs.</param>
 /// <param name="batchId">batchId.</param>
 /// <param name="mpid">mpid.</param>
 /// <param name="sdkVersion">sdkVersion.</param>
 /// <param name="consentState">consentState.</param>
 /// <param name="jobId">jobId.</param>
 public Batch(string sourceRequestId = default(string), BatchContext context = default(BatchContext), Collection <BaseEvent> events = default(Collection <BaseEvent>), DeviceInformation deviceInfo = default(DeviceInformation), ApplicationInformation applicationInfo = default(ApplicationInformation), Dictionary <string, Object> userAttributes = default(Dictionary <string, Object>), Collection <string> deletedUserAttributes = default(Collection <string>), BatchUserIdentities userIdentities = default(BatchUserIdentities), EnvironmentEnum environment = EnvironmentEnum.Production, string ip = default(string), Dictionary <string, Dictionary <string, string> > integrationAttributes = default(Dictionary <string, Dictionary <string, string> >), string partnerIdentity = default(string), SourceInformation sourceInfo = default(SourceInformation), string mpDeviceid = default(string), AttributionInfo attributionInfo = default(AttributionInfo), long timestampUnixtimeMs = default(long), long batchId = default(long), long mpid = default(long), string sdkVersion = default(string), ConsentState consentState = default(ConsentState), string jobId = default(string)) :
     base(sourceRequestId, context, deviceInfo, applicationInfo, userAttributes, deletedUserAttributes, userIdentities, environment, ip, integrationAttributes, partnerIdentity, sourceInfo, mpDeviceid, attributionInfo, timestampUnixtimeMs, batchId, mpid, sdkVersion, consentState, jobId)
 {
     this.Events = events ?? new Collection <BaseEvent>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Batch" /> class.
 /// </summary>
 /// <param name="sourceRequestId">sourceRequestId.</param>
 /// <param name="context">context.</param>
 /// <param name="deviceInfo">deviceInfo.</param>
 /// <param name="applicationInfo">applicationInfo.</param>
 /// <param name="userAttributes">userAttributes.</param>
 /// <param name="deletedUserAttributes">deletedUserAttributes.</param>
 /// <param name="userIdentities">userIdentities.</param>
 /// <param name="environment">environment (required) (default to EnvironmentEnum.Production).</param>
 /// <param name="ip">ip.</param>
 /// <param name="integrationAttributes">integrationAttributes.</param>
 /// <param name="partnerIdentity">partnerIdentity.</param>
 /// <param name="sourceInfo">sourceInfo.</param>
 /// <param name="mpDeviceid">mpDeviceid.</param>
 /// <param name="attributionInfo">attributionInfo.</param>
 /// <param name="timestampUnixtimeMs">timestampUnixtimeMs.</param>
 /// <param name="batchId">batchId.</param>
 /// <param name="mpid">mpid.</param>
 /// <param name="sdkVersion">sdkVersion.</param>
 /// <param name="consentState">consentState.</param>
 /// <param name="jobId">jobId.</param>
 public BaseBatch(string sourceRequestId = default(string), BatchContext context = default(BatchContext), DeviceInformation deviceInfo = default(DeviceInformation), ApplicationInformation applicationInfo = default(ApplicationInformation), Dictionary <string, Object> userAttributes = default(Dictionary <string, Object>), Collection <string> deletedUserAttributes = default(Collection <string>), BatchUserIdentities userIdentities = default(BatchUserIdentities), EnvironmentEnum environment = EnvironmentEnum.Production, string ip = default(string), Dictionary <string, Dictionary <string, string> > integrationAttributes = default(Dictionary <string, Dictionary <string, string> >), string partnerIdentity = default(string), SourceInformation sourceInfo = default(SourceInformation), string mpDeviceid = default(string), AttributionInfo attributionInfo = default(AttributionInfo), long timestampUnixtimeMs = default(long), long batchId = default(long), long mpid = default(long), string sdkVersion = default(string), ConsentState consentState = default(ConsentState), string jobId = default(string))
 {
     this.Environment           = environment;
     this.SourceRequestId       = sourceRequestId;
     this.Context               = context;
     this.DeviceInfo            = deviceInfo;
     this.ApplicationInfo       = applicationInfo;
     this.UserAttributes        = userAttributes;
     this.DeletedUserAttributes = deletedUserAttributes;
     this.UserIdentities        = userIdentities;
     this.Ip = ip;
     this.IntegrationAttributes = integrationAttributes;
     this.PartnerIdentity       = partnerIdentity;
     this.SourceInfo            = sourceInfo;
     this.MpDeviceid            = mpDeviceid;
     this.AttributionInfo       = attributionInfo;
     this.TimestampUnixtimeMs   = timestampUnixtimeMs;
     this.BatchId      = batchId;
     this.Mpid         = mpid;
     this.SdkVersion   = sdkVersion;
     this.ConsentState = consentState;
     this.JobId        = jobId;
 }