/// <summary> /// Initializes a new instance of the Usage class. /// </summary> public Usage(string unit, long?currentValue, long?limit, UsageName name) { Unit = unit; CurrentValue = currentValue; Limit = limit; Name = name; }
/// <summary> /// Initializes a new instance of the Usage class. /// </summary> /// <param name="currentValue">The current value of the usage.</param> /// <param name="limit">The limit of usage.</param> /// <param name="name">The name of the type of usage.</param> /// <param name="id">Resource identifier.</param> public Usage(long currentValue, long limit, UsageName name, string id = default(string)) { Id = id; CurrentValue = currentValue; Limit = limit; Name = name; CustomInit(); }
/// <summary> /// Initializes a new instance of the Usage class. /// </summary> public Usage(long currentValue, long limit, UsageName name) { CurrentValue = currentValue; Limit = limit; Name = name; }