40 lines
986 B
C#
40 lines
986 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace xEventService.Models
|
|
{
|
|
/// <summary>
|
|
/// a Message Descriptor for Events ...
|
|
/// </summary>
|
|
public class XEventMessage
|
|
{
|
|
/// <summary>
|
|
/// Specified Action for Fire ...
|
|
/// </summary>
|
|
[JsonRequired]
|
|
public string Action { get; set; }
|
|
|
|
/// <summary>
|
|
/// Specified Action Sender ...
|
|
/// </summary>
|
|
[JsonRequired]
|
|
public string Sender { get; set; }
|
|
|
|
/// <summary>
|
|
/// Sending Time ...
|
|
/// </summary>
|
|
[JsonRequired]
|
|
public DateTime Offset { get; set; }
|
|
|
|
/// <summary>
|
|
/// Specified Message ...
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// Metadata for Message ...
|
|
/// </summary>
|
|
public IDictionary<string, string> Payload { get; set; } = new Dictionary<string, string>();
|
|
}
|
|
} |