ProcessEventDto
Represents the process event data transfer object. This class cannot be inherited.
using System;
using System.Xml.Serialization;
namespace Relativity.DataExchange.Process
{
[Serializable]
[XmlRoot(ElementName = "ProcessEvent")]
public sealed class ProcessEventDto
{
[XmlElement(ElementName = "Type")]
public ProcessEventType EventType { get; set; }
[XmlElement(ElementName = "Message")]
public string Message { get; set; }
[XmlElement(ElementName = "RecordInfo")]
public string RecordInfo { get; set; }
[XmlElement(ElementName = "DateTime")]
public DateTime Timestamp { get; set; }
public ProcessEventDto()
{
EventType = ProcessEventType.Status;
RecordInfo = string.Empty;
Message = string.Empty;
Timestamp = DateTime.Now;
}
public ProcessEventDto(ProcessEventType eventType, string recordInfo, string message, DateTime timestamp)
{
EventType = eventType;
RecordInfo = recordInfo;
Message = message;
Timestamp = timestamp;
}
}
}