mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 01:31:19 +00:00
29 lines
656 B
C#
29 lines
656 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MyCore.Models
|
|
{
|
|
public class SmartPrinterMessage
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; }
|
|
|
|
[BsonElement("Time")]
|
|
public string Time { get; set; }
|
|
|
|
[BsonElement("Temperature")]
|
|
public double Temperature { get; set; }
|
|
|
|
[BsonElement("Pressure")]
|
|
public double Pressure { get; set; }
|
|
|
|
[BsonElement("Smoke")]
|
|
public int Smoke { get; set; }
|
|
}
|
|
}
|