Wiki » 履歴 » バージョン 3
みぞ @mizo0203, 2019/02/17 18:06
| 1 | 1 | みぞ @mizo0203 | # Wiki |
|---|---|---|---|
| 2 | |||
| 3 | * Nature Remo: https://nature.global |
||
| 4 | * Nature Remo API: https://developer.nature.global |
||
| 5 | 2 | みぞ @mizo0203 | |
| 6 | 3 | みぞ @mizo0203 | ## クラス図 |
| 7 | |||
| 8 | {{plantuml |
||
| 9 | |||
| 10 | MainActivity *-- MainPresenter |
||
| 11 | MainPresenter *-- NatureRemoRepository |
||
| 12 | NatureRemoRepository *-- NatureRemoLocalApiClient |
||
| 13 | NatureRemoLocalApiClient *-- NatureRemoLocalApiService |
||
| 14 | NatureRemoRepository *-- AppExecutors |
||
| 15 | AppExecutors *-- Executor |
||
| 16 | |||
| 17 | RemoteControlButtonType o-- IRSignal |
||
| 18 | |||
| 19 | class MainActivity |
||
| 20 | note left: リモコンアプリのメイン画面 (UI)\nactivity_main.xml や strings.xml も参照すること |
||
| 21 | |||
| 22 | class MainPresenter |
||
| 23 | note left: メイン画面 ({@link MainActivity}) からユーザー操作を受けて、\n必要に応じて Nature Remo との通信やメイン画面の更新をします |
||
| 24 | |||
| 25 | class NatureRemoRepository |
||
| 26 | note left: ローカルネットワーク上の Nature Remo と通信します |
||
| 27 | |||
| 28 | class NatureRemoLocalApiClient |
||
| 29 | note left: Nature Remo Local API v1.0.0 |
||
| 30 | |||
| 31 | interface NatureRemoLocalApiService |
||
| 32 | note left: Retrofit 用\nNature Remo Local API\n定義インターフェイス |
||
| 33 | |||
| 34 | class AppExecutors |
||
| 35 | note left: リモコンアプリ全体の\n{@link Executor} プール |
||
| 36 | |||
| 37 | interface Executor |
||
| 38 | note left: {@link Runnable} タスクを\n実行するオブジェクト |
||
| 39 | |||
| 40 | interface RemoteControlButtonType { |
||
| 41 | + {static} IRSignal POWER |
||
| 42 | + {static} IRSignal NUM_1 ~ NUM_12 |
||
| 43 | + {static} IRSignal CH_UP |
||
| 44 | + {static} IRSignal CH_DOWN |
||
| 45 | + {static} IRSignal VOL_UP |
||
| 46 | + {static} IRSignal VOL_DOWN |
||
| 47 | } |
||
| 48 | note left: Panasonic 社製\nテレビリモコンの\nIR 信号データ |
||
| 49 | |||
| 50 | class IRSignal { |
||
| 51 | + int freq |
||
| 52 | + int[] data |
||
| 53 | + String format |
||
| 54 | } |
||
| 55 | note left: IR 信号 |
||
| 56 | |||
| 57 | }} |
||
| 58 | |||
| 59 | 2 | みぞ @mizo0203 | ## 参考 URL |
| 60 | |||
| 61 | * IRKit: http://getirkit.com |