C#が好きですが仕事ではPHPを書いています(?)
最近proじゃなくても良くねと思い始めてる次第
ingen084 / kyoshinmonitorlib Goto Github PK
View Code? Open in Web Editor NEW.NETから簡単に強震モニタを利用できるようにするライブラリ
License: MIT License
.NETから簡単に強震モニタを利用できるようにするライブラリ
License: MIT License
GetEewInfo実行時、指定時刻にEEWが未発表だった際、以下の例外が発生します。
Utf8Json.JsonParsingException: expected:'true | false', actual:'""', at offset:214
場所 Utf8Json.JsonReader.ReadBoolean()
場所 Utf8Json.Formatters.NullableBooleanFormatter.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
場所 Utf8Json.Formatters.KyoshinMonitorLib_ApiResult_WebApi_EewFormatter1.Deserialize(JsonReader& , IJsonFormatterResolver )
場所 Utf8Json.JsonSerializer.Deserialize[T](Byte[] bytes, Int32 offset, IJsonFormatterResolver resolver)
場所 Utf8Json.JsonSerializer.Deserialize[T](Byte[] bytes, IJsonFormatterResolver resolver)
場所 Utf8Json.JsonSerializer.Deserialize[T](String json, IJsonFormatterResolver resolver)
場所 Utf8Json.JsonSerializer.Deserialize[T](String json)
場所 KyoshinMonitorLib.Api.<GetJsonObject>d__3`1.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
場所 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
場所 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
例外の有無でも発表/未発表を区別できるのですが、例外は重い処理であること、意図されていない使い方であることから、EEW未発表時(result.message="データがありません")はnullを返す、または未発表時のJsonをそのままパースした結果を返す等の処理に変更したほうが良いと思います。
なお、現在は""→Nullableの変換に失敗しているので、これが意図しない動作なら、修正をお願いします。
強震モニタから画像を取得してくることに特化したタイマー
00:00:00.000
に+100ms
だと23:59:59.900
に00:00:00.000
のイベントを発生させる割と使う…よね…?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.