Class WarrantyDurationDto
This class does not represent a typical TimeSpan
but has a scalar value int Duration and a
DurationUnit Unit to represent durations as typically
used in contracts, e.g. 5 Months
Inheritance
System.Object
WarrantyDurationDto
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dangl.AVACloud.Client
Assembly: Dangl.AVACloud.Client.dll
Syntax
public class WarrantyDurationDto : INotifyPropertyChanged
Properties
| Improve this Doc View SourceDuration
The scalar value of the duration. This value must be equal to or bigger than zero (>= 0). Negative values can not be set and will be ignored.
Declaration
[JsonProperty("duration", Required = Required.Always)]
public int Duration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Unit
The unit of the duration
Declaration
[JsonProperty("unit", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[JsonConverter(typeof(StringEnumConverter))]
public DurationUnitDto Unit { get; set; }
Property Value
| Type | Description |
|---|---|
| DurationUnitDto |
Methods
| Improve this Doc View SourceFromJson(String)
Declaration
public static WarrantyDurationDto FromJson(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | data |
Returns
| Type | Description |
|---|---|
| WarrantyDurationDto |
RaisePropertyChanged(String)
Declaration
protected virtual void RaisePropertyChanged(string propertyName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | propertyName |
ToJson()
Declaration
public string ToJson()
Returns
| Type | Description |
|---|---|
| System.String |
Events
| Improve this Doc View SourcePropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged