Class MessageCollection
Object used to store multiple Message objects and corresponding checkpoints
Inherited Members
Namespace: Unity.Cloud.Common
Syntax
[Serializable]
public class MessageCollection
Constructors
MessageCollection(IEnumerable<Message>, Int64)
Initializes and returns an instance of MessageCollection
Declaration
public MessageCollection(IEnumerable<Message> messages, long checkpointEpochMilliseconds)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Message> | messages | The messages to add to the collection. |
Int64 | checkpointEpochMilliseconds | The checkpoint to track the DateTime at which the MessageCollection is sent. |
Properties
CheckpointEpochMilliseconds
Used to track the DateTime at which the MessageCollection is sent Generally tracked in UnixTimeMilliseconds
Declaration
public long CheckpointEpochMilliseconds { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Messages
List of Message objects stored in the MessageCollection
Declaration
public List<Message> Messages { get; set; }
Property Value
Type | Description |
---|---|
List<Message> |