예제 #1
0
파일: t3341.cs 프로젝트: tdoobw/XingAPI
        public static XQAllOutBlocks Get(char gubun = default, char gubun1 = default, char gubun2 = default, long idx = default)
        {
            using (XQt3341 instance = new XQt3341())
            {
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.gubun, 0, gubun.ToString());                 // char 1
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.gubun1, 0, gubun1.ToString());               // char 1
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.gubun2, 0, gubun2.ToString());               // char 1
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.idx, 0, idx.ToString("d4"));                 // long 4

                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);
            }
        }
예제 #2
0
파일: t3341.cs 프로젝트: iPeterPan/XingAPI
        public static XQt3341OutBlock1[] Get(char gubun = default, char gubun1 = default, char gubun2 = default, long idx = default)
        {
            using (XQt3341 instance = new XQt3341())
            {
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.gubun, 0, gubun.ToString());                 // char 1
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.gubun1, 0, gubun1.ToString());               // char 1
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.gubun2, 0, gubun2.ToString());               // char 1
                instance.SetFieldData(XQt3341InBlock.BlockName, XQt3341InBlock.F.idx, 0, idx.ToString("d4"));                 // long 4

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

                var outBlock = instance.GetBlock1s();
                return(outBlock);
            }
        }