예제 #1
0
파일: t1981.cs 프로젝트: iPeterPan/XingAPI
        public static XQt1981OutBlock1[] Get(char mkt_gb = default)
        {
            using (XQt1981 instance = new XQt1981())
            {
                instance.SetFieldData(XQt1981InBlock.BlockName, XQt1981InBlock.F.mkt_gb, 0, mkt_gb.ToString());                 // char 1

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

                var outBlock = instance.GetBlock1s();
                return(outBlock);
            }
        }
예제 #2
0
파일: t1981.cs 프로젝트: tdoobw/XingAPI
        public static XQAllOutBlocks Get(char mkt_gb = default)
        {
            using (XQt1981 instance = new XQt1981())
            {
                instance.SetFieldData(XQt1981InBlock.BlockName, XQt1981InBlock.F.mkt_gb, 0, mkt_gb.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);
            }
        }