forked from segmentio/Analytics.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBatch.cs
More file actions
33 lines (26 loc) · 725 Bytes
/
Batch.cs
File metadata and controls
33 lines (26 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
namespace Segment.Model
{
internal class Batch
{
internal string WriteKey { get; set; }
[JsonProperty(PropertyName="messageId")]
internal string MessageId { get; private set; }
[JsonProperty(PropertyName="sentAt")]
internal string SentAt { get; set; }
[JsonProperty(PropertyName = "batch")]
internal List<BaseAction> batch { get; set; }
internal Batch()
{
this.MessageId = Guid.NewGuid ().ToString ();
}
internal Batch(string writeKey, List<BaseAction> batch) : this()
{
this.WriteKey = writeKey;
this.batch = batch;
}
}
}