コード例 #1
0
 public MeasurementUnit(Models.MeasurementUnitCustom customUnit = null,
                        string areaUnit    = null,
                        string lengthUnit  = null,
                        string volumeUnit  = null,
                        string weightUnit  = null,
                        string genericUnit = null,
                        string timeUnit    = null,
                        string type        = null)
 {
     CustomUnit  = customUnit;
     AreaUnit    = areaUnit;
     LengthUnit  = lengthUnit;
     VolumeUnit  = volumeUnit;
     WeightUnit  = weightUnit;
     GenericUnit = genericUnit;
     TimeUnit    = timeUnit;
     Type        = type;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeasurementUnit"/> class.
 /// </summary>
 /// <param name="customUnit">custom_unit.</param>
 /// <param name="areaUnit">area_unit.</param>
 /// <param name="lengthUnit">length_unit.</param>
 /// <param name="volumeUnit">volume_unit.</param>
 /// <param name="weightUnit">weight_unit.</param>
 /// <param name="genericUnit">generic_unit.</param>
 /// <param name="timeUnit">time_unit.</param>
 /// <param name="type">type.</param>
 public MeasurementUnit(
     Models.MeasurementUnitCustom customUnit = null,
     string areaUnit    = null,
     string lengthUnit  = null,
     string volumeUnit  = null,
     string weightUnit  = null,
     string genericUnit = null,
     string timeUnit    = null,
     string type        = null)
 {
     this.CustomUnit  = customUnit;
     this.AreaUnit    = areaUnit;
     this.LengthUnit  = lengthUnit;
     this.VolumeUnit  = volumeUnit;
     this.WeightUnit  = weightUnit;
     this.GenericUnit = genericUnit;
     this.TimeUnit    = timeUnit;
     this.Type        = type;
 }
コード例 #3
0
 public Builder CustomUnit(Models.MeasurementUnitCustom value)
 {
     customUnit = value;
     return(this);
 }
コード例 #4
0
 public Builder CustomUnit(Models.MeasurementUnitCustom customUnit)
 {
     this.customUnit = customUnit;
     return(this);
 }