lixiaojun
2024-12-19 1dd158434a41627a6684cd630b2696fb83b1e3d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using Yw.CAL.HttpClient;
 
namespace HStation.CAL.HttpClient
{
    /// <summary>
    ///
    /// </summary>
    public class AssetsFlowmeterSeries : BaseCAL_Paras_Flags_TagName_TreeSorter<AddAssetsFlowmeterSeriesInput, UpdateAssetsFlowmeterSeriesInput, AssetsFlowmeterSeriesDto>, IAssetsFlowmeterSeries
    {
        protected override string Prefix
        {
            get { return $"{ConfigHelper.HttpUrl}/Assets/Flowmeter/Series"; }
        }
 
 
        /// <summary>
        /// 
        /// </summary>
        public async Task<bool> IsExistTagName(string TagName)
        {
            var paras = new List<(string Name, object Value)>()
            {
                (nameof(TagName),TagName)
            };
            return await GetUrl("IsExistTagName@V1.0").Get<bool>(paras);
        }
 
        /// <summary>
        /// 
        /// </summary>
        public async Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID)
        {
            var paras = new List<(string Name, object Value)>()
            {
                (nameof(TagName),TagName),
                (nameof(ExceptID),ExceptID)
            };
            return await GetUrl("IsExistTagNameExceptID@V1.0").Get<bool>(paras);
        }
 
 
    }
}