output-service-tsdb/Models/ApiObject.cs
Kristóf Torma 825cd27f3c
All checks were successful
continuous-integration/drone/push Build is passing
added influxdb stuff
2020-04-08 02:58:29 +02:00

24 lines
526 B
C#

using System;
namespace OutputServiceTSDB.Models
{
public class ApiObject
{
public string Tag { get; set; }
private double _probability;
public double Probability
{ get => _probability;
set
{
if (value > 1.0 || value < 0.0)
throw new ArgumentOutOfRangeException(
$"{nameof(value)} must be between 0 and 1.");
else
_probability = value;
}
}
}
}