Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EchonetObject.PropertyValueUpdatedを追加する #57

Merged
merged 3 commits into from
Nov 10, 2024

Conversation

smdn
Copy link
Owner

@smdn smdn commented Nov 10, 2024

Description

プロパティ単位で値の更新を感知するEchonetProperty.ValueUpdatedとは別に、オブジェクト単位で各プロパティの値の更新を感知・処理できるようにするため、EchonetObject.PropertyValueUpdatedを追加する。

これに伴い、以下の変更を加える。

  • イベント引数を整理したEchonetPropertyValueUpdatedEventArgsを追加する
  • ECHONET Lite仕様では実行環境のタイムゾーン情報・オフセット情報の規定がなく、暗黙的にすべて同一タイムゾーン内の時刻・ローカル時刻であると仮定されるため、EchonetProperty.LastUpdatedTimeの型もDateTimeで扱うように変更する

@smdn smdn merged commit 884bc85 into main Nov 10, 2024
22 checks passed
@smdn smdn deleted the improve-value-updated-events branch November 10, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant