示例#1
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _height = reader.Read <DimensionMeasure>("Height");
     _width  = reader.Read <DimensionMeasure>("Width");
     _length = reader.Read <DimensionMeasure>("Length");
     _weight = reader.Read <WeightMeasure>("Weight");
 }
示例#2
0
 /// <summary>
 /// Sets the Weight property.
 /// </summary>
 /// <param name="weight">Weight property.</param>
 /// <returns>this instance.</returns>
 public ItemDimensions WithWeight(WeightMeasure weight)
 {
     this._weight = weight;
     return(this);
 }