Show / Hide Table of Contents

    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 Source

    Duration

    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
    | Improve this Doc View Source

    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 Source

    FromJson(String)

    Declaration
    public static WarrantyDurationDto FromJson(string data)
    Parameters
    Type Name Description
    System.String data
    Returns
    Type Description
    WarrantyDurationDto
    | Improve this Doc View Source

    RaisePropertyChanged(String)

    Declaration
    protected virtual void RaisePropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    System.String propertyName
    | Improve this Doc View Source

    ToJson()

    Declaration
    public string ToJson()
    Returns
    Type Description
    System.String

    Events

    | Improve this Doc View Source

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    • Improve this Doc
    • View Source
    Back to top © Dangl IT GmbH