示例#1
0
文件: t1442.cs 项目: tdoobw/XingAPI
        public static XQt1442OutBlock FromQuery(XQt1442 query)
        {
            XQt1442OutBlock block = new XQt1442OutBlock();

            block.IsValidData   = true;
            block.InvalidReason = "";
            if (query.QueryResult != null && query.QueryResult.IsSystemError == true)
            {
                block.IsValidData   = false;
                block.InvalidReason = query.ReceiveMessage;
                return(block);
            }
            try
            {
                block.idx = query.GetFieldData(block.GetBlockName(), "idx", 0).ParseLong("idx");                 // long 4
            } catch (InvalidDataFormatException e) {
                block.IsValidData   = false;
                block.InvalidReason = $"FieldName == {e.DataFieldName}, FieldData == \"{e.DataValue}\"";
            }
            return(block);
        }
示例#2
0
文件: t1442.cs 项目: tdoobw/XingAPI
        public XQt1442OutBlock GetBlock()
        {
            XQt1442OutBlock instance = XQt1442OutBlock.FromQuery(this);

            return(instance);
        }