Newer
Older
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Public_API.Shared.Models
{
public class SensorValue
{
[Key]
public int valueID { get; set; }
public DateTime dateTime { get; set; }
public int sensorID { get; set; }
public decimal temperature { get; set; }
public decimal humidity { get; set; }
public decimal co2 { get; set; }
Callum Inglis
committed
public decimal ppm10 { get; set; }
public decimal ppm25 { get; set; }
Callum Inglis
committed
public decimal ppm100 { get; set; }
Callum Inglis
committed
public SensorValue(int sensorID, DateTime dateTime, decimal temperature, decimal humidity, decimal co2, decimal ppm10, decimal ppm25, decimal ppm100)
{
this.sensorID = sensorID;
this.temperature = temperature;
this.humidity = humidity;
this.co2 = co2;
Callum Inglis
committed
this.ppm10 = ppm10;
this.ppm25 = ppm25;
Callum Inglis
committed
this.ppm100 = ppm100;