コード例 #1
0
        public static List <TransferData> GetData()
        {
            List <Value> values = Value.GetNew(dbConnectionString, pollInterval / 1000);

            if (values.Count == 0)
            {
                values = Value.GetLatest(dbConnectionString);
            }

            List <TransferData> allData = new List <TransferData>();

            foreach (Value val in values)
            {
                TransferData allValueData = TransferData.Get(dbConnectionString, val.valueUuid);

                allData.Add(allValueData);
            }

            return(allData);
        }