コード例 #1
0
ファイル: t1485.cs プロジェクト: iPeterPan/XingAPI
        public static XQt1485OutBlock1[] Get(string upcode = default, char gubun = default)
        {
            using (XQt1485 instance = new XQt1485())
            {
                instance.SetFieldData(XQt1485InBlock.BlockName, XQt1485InBlock.F.upcode, 0, upcode);                 // char 3
                instance.SetFieldData(XQt1485InBlock.BlockName, XQt1485InBlock.F.gubun, 0, gubun.ToString());        // char 1

                if (instance.Request() < 0)
                {
                    return(null);
                }

                var outBlock = instance.GetBlock1s();
                return(outBlock);
            }
        }
コード例 #2
0
ファイル: t1485.cs プロジェクト: tdoobw/XingAPI
        public static XQAllOutBlocks Get(string upcode = default, char gubun = default)
        {
            using (XQt1485 instance = new XQt1485())
            {
                instance.SetFieldData(XQt1485InBlock.BlockName, XQt1485InBlock.F.upcode, 0, upcode);                 // char 3
                instance.SetFieldData(XQt1485InBlock.BlockName, XQt1485InBlock.F.gubun, 0, gubun.ToString());        // char 1

                if (instance.Request() < 0)
                {
                    return(null);
                }

                XQAllOutBlocks results = new XQAllOutBlocks();
                results.OutBlock = instance.GetBlock();
                if (results.OutBlock.IsValidData == false)
                {
                    return(null);
                }

                results.OutBlock1 = instance.GetBlock1s();
                return(results);
            }
        }