Sfoglia il codice sorgente

Add data model.

master
yangxiaodong 7 anni fa
parent
commit
e256691973
2 ha cambiato i file con 25 aggiunte e 0 eliminazioni
  1. +12
    -0
      src/DotNetCore.CAP/MessageData.cs
  2. +13
    -0
      src/DotNetCore.CAP/StateData.cs

+ 12
- 0
src/DotNetCore.CAP/MessageData.cs Vedi File

@@ -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; }
}
}

+ 13
- 0
src/DotNetCore.CAP/StateData.cs Vedi File

@@ -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<string, string> Data { get; set; }
}
}

Caricamento…
Annulla
Salva