BlowingFixProfileServiceClient.cs 2.06 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1
using FLY.Thick.Blowing.Common;
潘栩锋's avatar
潘栩锋 committed
2 3 4
using FLY.Thick.Blowing.IService;
using FLY.Thick.Blowing.OBJ_INTERFACE;
using FObjBase;
5
using Newtonsoft.Json;
潘栩锋's avatar
潘栩锋 committed
6 7 8 9 10 11 12
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FLY.Thick.Blowing.Client
{
13
    public class BlowingFixProfileServiceClient : FObjBase.Reflect.Reflect_SeviceClient, IBlowingFixProfileService
潘栩锋's avatar
潘栩锋 committed
14 15
    {

16 17
        protected override Type InterfaceType => typeof(IBlowingFixProfileService);

18
        public BlowingFixProfileServiceClient(UInt32 serviceId) : base(serviceId) { }
19

20
        public BlowingFixProfileServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }
潘栩锋's avatar
潘栩锋 committed
21 22

        #region IProfileService  接口
23 24 25

        public BlowingFixProfileParam Param { get; } = new BlowingFixProfileParam();

潘栩锋's avatar
潘栩锋 committed
26 27 28 29 30


        /// <summary>
        /// 应用 &amp; 保存
        /// </summary>
31
        public void Apply(BlowingFixProfileParam param)
潘栩锋's avatar
潘栩锋 committed
32
        {
33
            Call(nameof(Apply), new { param });
潘栩锋's avatar
潘栩锋 committed
34 35 36 37 38 39 40
        }



        /// <summary>
        /// 获取产品列表, 返回类型为 List&lt;string&gt;
        /// </summary>
41 42 43
        /// <param name="asyncDelegate"></param>
        /// <param name="asyncContext"></param>
        public void GetList(AsyncCBHandler asyncDelegate, object asyncContext)
潘栩锋's avatar
潘栩锋 committed
44
        {
45
            Call(nameof(GetList), null, asyncDelegate, asyncContext);
潘栩锋's avatar
潘栩锋 committed
46 47 48 49 50 51 52 53
        }

        /// <summary>
        /// 删除指定产品
        /// </summary>
        /// <param name="productname"></param>
        public void Del(string productname)
        {
54
            Call(nameof(Del), new { productname });
潘栩锋's avatar
潘栩锋 committed
55 56 57 58 59 60
        }

        /// <summary>
        /// 读取指定产品,返回类型为 ProfileParam
        /// </summary>
        /// <param name="productname"></param>
61 62 63
        /// <param name="asyncDelegate"></param>
        /// <param name="asyncContext"></param>
        public void Read(string productname, AsyncCBHandler asyncDelegate, object asyncContext)
潘栩锋's avatar
潘栩锋 committed
64
        {
65
            Call(nameof(Read), new { productname }, asyncDelegate, asyncContext);
潘栩锋's avatar
潘栩锋 committed
66 67 68 69
        }
        #endregion
    }
}