From e256691973d22765ab6407ff1192e634c5aee8a2 Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Sat, 26 Aug 2017 18:30:56 +0800 Subject: [PATCH] Add data model. --- src/DotNetCore.CAP/MessageData.cs | 12 ++++++++++++ src/DotNetCore.CAP/StateData.cs | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/DotNetCore.CAP/MessageData.cs create mode 100644 src/DotNetCore.CAP/StateData.cs diff --git a/src/DotNetCore.CAP/MessageData.cs b/src/DotNetCore.CAP/MessageData.cs new file mode 100644 index 0000000..d277f75 --- /dev/null +++ b/src/DotNetCore.CAP/MessageData.cs @@ -0,0 +1,12 @@ +using System; +using DotNetCore.CAP.Models; + +namespace DotNetCore.CAP +{ + public class MessageData + { + public string State { get; set; } + public Message Message { get; set; } + public DateTime CreatedAt { get; set; } + } +} \ No newline at end of file diff --git a/src/DotNetCore.CAP/StateData.cs b/src/DotNetCore.CAP/StateData.cs new file mode 100644 index 0000000..adc3e1f --- /dev/null +++ b/src/DotNetCore.CAP/StateData.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; + +namespace DotNetCore.CAP +{ + public class StateData + { + public string Name { get; set; } + + public string Reason { get; set; } + + public IDictionary Data { get; set; } + } +} \ No newline at end of file