Kristóf Torma
825cd27f3c
All checks were successful
continuous-integration/drone/push Build is passing
24 lines
526 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|