jy-plc/Command/Model/EntityModel/Device.cs

52 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LangGuan.Command.Model.EntityModel
{
/// <summary>
/// 设备信息
/// </summary>
public class Device : BaseModel
{
/// <summary>
/// deviceIp
/// </summary>
public string deviceIp { get; set; }
/// <summary>
/// 设备标识
/// </summary>
public string deviceId { get; set; }
[BsonRepresentation(BsonType.String)]
/// <summary>
/// 经
/// </summary>
public string lng { get; set; }
[BsonRepresentation(BsonType.String)]
/// <summary>
/// 续
/// </summary>
public string lat { get; set; }
/// <summary>
/// 别名
/// </summary>
public string NickName { get; set; }
/// <summary>
/// 角度
/// </summary>
public double angle { get; set; }
/// <summary>
/// 状态 0离线1在线
/// </summary>
public int state { get; set; }
/// <summary>
/// 是否分配组
/// </summary>
public bool InGroup { get; set; }
}
}