1
2
3
4
5
6
7
8
9
10
11
12
13
14
| package com.battery.device.api.model;
|
| public record AdapterCapabilities(
| boolean discovery,
| boolean realtimeObservation,
| boolean historyDownload,
| boolean control)
| {
| /** 只观测的能力组合:具备发现与实时观测,不提供历史下载与控制。 */
| public static AdapterCapabilities observeOnly()
| {
| return new AdapterCapabilities(true, true, false, false);
| }
| }
|
|