Ejemplo n.º 1
0
        public static void AddProduct(DataResultBlock resultBlock, StructGoods product)
        {
            CSGoodsAdd.Builder addproduct = new CSGoodsAdd.Builder()
            {
                Goods = product,
            };

            MessageContent.Builder content = new MessageContent.Builder();
            content.SetMessageType(1);
            content.SetCsGoodsAdd(addproduct);

            SendModel send = new SendModel()
            {
                cmd     = Cmd.CMD_GOODS_ADD,
                content = content.Build()
            };

            NetMessageManage.SendMsg(send, resultBlock);
        }