mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 17:51:20 +00:00
38 lines
878 B
C#
38 lines
878 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 SmartGardenMessage
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; }
|
|
|
|
[BsonElement("Type")]
|
|
public string Type { get; set; }
|
|
|
|
[BsonElement("Time")]
|
|
public string Time { get; set; }
|
|
|
|
[BsonElement("Temperature")]
|
|
public double Temperature { get; set; }
|
|
|
|
[BsonElement("Pressure")]
|
|
public double Pressure { get; set; }
|
|
|
|
[BsonElement("Humidity")]
|
|
public double Humidity { get; set; }
|
|
|
|
[BsonElement("Water")]
|
|
public int Water { get; set; }
|
|
|
|
[BsonElement("Light")]
|
|
public int Light { get; set; }
|
|
}
|
|
}
|