Exemple #1
0
 public Health(HealthEnum state, string desc, int threshold, int value)
 {
     State     = state;
     Desc      = desc;
     Threshold = threshold;
     Value     = value;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse20016" /> class.
 /// </summary>
 /// <param name="health">health (required).</param>
 public InlineResponse20016(HealthEnum health = default(HealthEnum))
 {
     // to ensure "health" is required (not null)
     if (health == null)
     {
         throw new InvalidDataException("health is a required property for InlineResponse20016 and cannot be null");
     }
     else
     {
         this.Health = health;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiHealthCheck" /> class.
 /// </summary>
 /// <param name="health">health (required).</param>
 public ApiHealthCheck(HealthEnum health = default(HealthEnum))
 {
     // to ensure "health" is required (not null)
     if (health == null)
     {
         throw new InvalidDataException("health is a required property for ApiHealthCheck and cannot be null");
     }
     else
     {
         this.Health = health;
     }
 }