1
0
mirror of synced 2024-11-14 17:33:49 +00:00
PettingZoo/Model/MessageInfo.cs

31 lines
663 B
C#

using System;
using System.Collections.Generic;
namespace PettingZoo.Model
{
public class MessageInfo
{
public DateTime Timestamp { get; set; }
public string RoutingKey { get; set; }
public byte[] Body { get; set; }
public Dictionary<string, string> Properties;
public string ContentType
{
get
{
return Properties != null && Properties.ContainsKey("content-type")
? Properties["content-type"]
: "";
}
}
public MessageInfo()
{
Timestamp = DateTime.Now;
}
}
}