瀏覽代碼

renamed message dto.

master
yangxiaodong 7 年之前
父節點
當前提交
50bf7ddeb0
共有 2 個文件被更改,包括 26 次插入26 次删除
  1. +26
    -0
      src/DotNetCore.CAP/Models/CapMessageDto.cs
  2. +0
    -26
      src/DotNetCore.CAP/Models/Message.cs

+ 26
- 0
src/DotNetCore.CAP/Models/CapMessageDto.cs 查看文件

@@ -0,0 +1,26 @@
using System;

namespace DotNetCore.CAP.Models
{
public class CapMessageDto
{
public virtual string Id { get; set; }

public virtual DateTime Timestamp { get; set; }

public virtual object Content { get; set; }

public virtual string CallbackName { get; set; }

public CapMessageDto()
{
Id = ObjectId.GenerateNewStringId();
Timestamp = DateTime.Now;
}

public CapMessageDto(object content) : this()
{
Content = content;
}
}
}

+ 0
- 26
src/DotNetCore.CAP/Models/Message.cs 查看文件

@@ -1,26 +0,0 @@
using System;

namespace DotNetCore.CAP.Models
{
public class Message
{
public string Id { get; set; }

public DateTime Timestamp { get; set; }

public object Content { get; set; }

public string CallbackName { get; set; }

public Message()
{
Id = ObjectId.GenerateNewStringId();
Timestamp = DateTime.Now;
}

public Message(object content) : this()
{
Content = content;
}
}
}

Loading…
取消
儲存