示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ArticleSelectedMessage"/> class.
        /// </summary>
        public ArticleSelectedMessage(MosaicMessage message)
        {
            Interfaces.Messages.Sales.ArticleSelectedMessage msg = (Interfaces.Messages.Sales.ArticleSelectedMessage)message;

            this.Id          = msg.ID;
            this.Source      = msg.Source;
            this.Destination = msg.Destination;
            this.Article     = msg.Article;
        }
示例#2
0
        /// <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 msg = new Interfaces.Messages.Sales.ArticleSelectedMessage(converterStream);

            msg.ID          = this.Id;
            msg.Source      = this.Source;
            msg.Destination = this.Destination;
            msg.Article     = this.Article;
            return(msg);
        }