42 lines
960 B
C#
42 lines
960 B
C#
using Common.Models.PubClass;
|
|
using Common.Models.UnqTables;
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Server.MyClass.Class
|
|
{
|
|
[ProtoBuf.ProtoContract]
|
|
public class DeviceSession
|
|
{
|
|
/// <summary>
|
|
/// 是否正在读取消息
|
|
/// </summary>
|
|
[ProtoBuf.ProtoMember(1)]
|
|
public bool IsReading { get; set; }
|
|
|
|
/// <summary>
|
|
/// 读取消息时间
|
|
/// </summary>
|
|
[ProtoBuf.ProtoMember(2)]
|
|
public DateTime ReadTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 登录的机器人
|
|
/// </summary>
|
|
[ProtoBuf.ProtoMember(3)]
|
|
public int RobotId { get; set; }
|
|
|
|
public DeviceSession()
|
|
{
|
|
Messages = new Queue<DeviceMessage>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 发送的消息列表
|
|
/// </summary>
|
|
public Queue<DeviceMessage> Messages { get; set; }
|
|
|
|
}
|
|
}
|