/// <summary> /// Initializes a new instance of the <see cref="ShoppingCartUpdateRequest"/> class. /// </summary> public ShoppingCartUpdateRequest(MosaicMessage message) { Interfaces.Messages.Sales.ShoppingCartUpdateRequest request = (Interfaces.Messages.Sales.ShoppingCartUpdateRequest)message; this.Id = request.ID; this.Source = request.Source; this.Destination = request.Destination; this.ShoppingCart = request.ShoppingCart; }
/// <summary> /// Translates this object instance into a Mosaic message. /// </summary> /// <param name="converterStream">The converter stream instance which request the message conversion.</param> /// <returns> /// The Mosaic message representation of this object. /// </returns> public MosaicMessage ToMosaicMessage(IConverterStream converterStream) { var request = new Interfaces.Messages.Sales.ShoppingCartUpdateRequest(converterStream); request.ID = this.Id; request.Source = this.Source; request.Destination = this.Destination; request.ShoppingCart = this.ShoppingCart; return(request); }