示例#1
0
 public override Task <RealTimeData> GetRealTimeData(DateTime time, RealTimeDataType dataType, bool isBehore = false)
 => Task.FromResult(JsonSerializer.Deserialize <RealTimeData>(
                        File.ReadAllText(AppApiUrlGenerator.Generate(AppApiUrlType.RealTimeData, time, dataType, isBehore).Replace("http://ts.qtmoni.bosai.go.jp/qt/tsapp/kyoshin_monitor/static/sip_data/", BasePath))));
示例#2
0
 public override Task <Hypo> GetHypoInfo(DateTime time)
 => Task.FromResult(JsonSerializer.Deserialize <Hypo>(
                        File.ReadAllText(AppApiUrlGenerator.Generate(AppApiUrlType.HypoInfoJson, time).Replace("http://kv.kmoni.bosai.go.jp/kyoshin_monitor/static/jsondata/", BasePath))));
示例#3
0
 public override Task <SiteList> GetSiteList(string baseSerialNo)
 => Task.FromResult(JsonSerializer.Deserialize <SiteList>(
                        File.ReadAllText(AppApiUrlGenerator.Generate(baseSerialNo).Replace("http://ts.qtmoni.bosai.go.jp/qt/tsapp/kyoshin_monitor/static/sip_data/", BasePath))));