pyrokid_cxr_clientm.extend.infos¶
com.rokid.cxr.client-m:1.0.9 - extend/infos/ in Python
extend.infos namespace contains BluetoothPeriphInfo, GlassInfo, IconInfo, RKAppInfo, RKWifiInfo, SceneStatusInfo and ScheduleInfo
- class pyrokid_cxr_clientm.extend.infos.BluetoothPeriphInfo(address: str, bondState: int, name: str, type: int, connectState: bool)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.infos.BluetoothPeriphInfo Java class to Python
- address: str¶
- bondState: int¶
- connectState: bool¶
- dataclass_json_config = {'undefined': Undefined.EXCLUDE}¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- name: str¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- type: int¶
- class pyrokid_cxr_clientm.extend.infos.GlassInfo(deviceName: str, batteryLevel: int, isCharging: bool, devicePanel: str, brightness: int, sound: int, wearingStatus: str, deviceKey: str, deviceSecret: str, deviceTypeId: str, deviceId: str, deviceSeed: str, otaCheckUrl: str, otaCheckApi: str, assistVersionName: str, assistVersionCode: int, systemVersion: str, buildTypeIsUser: bool = False, displayWidth: int = 480, displayHeight: int = 640)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.infos.GlassInfo Java class to Python
- assistVersionCode: int¶
- assistVersionName: str¶
- batteryLevel: int¶
- brightness: int¶
- buildTypeIsUser: bool = False¶
- dataclass_json_config = {'undefined': Undefined.EXCLUDE}¶
- deviceId: str¶
- deviceKey: str¶
- deviceName: str¶
- devicePanel: str¶
- deviceSecret: str¶
- deviceSeed: str¶
- deviceTypeId: str¶
- displayHeight: int = 640¶
- displayWidth: int = 480¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- isCharging: bool¶
- otaCheckApi: str¶
- otaCheckUrl: str¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- sound: int¶
- systemVersion: str¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- wearingStatus: str¶
- class pyrokid_cxr_clientm.extend.infos.IconInfo(name: str, data: str)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.infos.IconInfo Java class to Python
Icons should not exceed 128x128px. It is recommended to not upload more than 10 icons to keep speed.
Transparent AND black pixels are ignored by the glasses! Please use green or white pixels to get visible content! Don’t even try to open an issue if you’re using a black image!
from base64 import b64encode from pyrokid_cxr_clientm.extend.infos import IconInfo with open('icon0.png', 'rb') as f: icon0_base64 = b64encode(f.read()).decode('utf-8') icon0 = IconInfo(name='icon0', data=icon0_base64)
- data: str¶
- dataclass_json_config = {'undefined': Undefined.EXCLUDE}¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- name: str¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- class pyrokid_cxr_clientm.extend.infos.RKAppInfo(packageName: str, activityName: str)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.infos.RKAppInfo Java class to Python
- activityName: str¶
- dataclass_json_config = {'undefined': Undefined.EXCLUDE}¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- packageName: str¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- class pyrokid_cxr_clientm.extend.infos.RKWifiInfo(name: str, signal: int)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.infos.RKWifiInfo Java class to Python
- dataclass_json_config = {'undefined': Undefined.EXCLUDE}¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- name: str¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- signal: int¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- class pyrokid_cxr_clientm.extend.infos.SceneStatusInfo(aiAssistRunning: bool, aiChatRunning: bool, audioRecordRunning: bool, hasDisplay: bool, navigationRunning: bool, otaRunning: bool, paymentRunning: bool, phoneCallRunning: bool, translateRunning: bool, videoRecordRunning: bool, wordTipsRunning: bool, customViewRunning: bool, mixRecordRunning: bool, arPictureRunning: bool = False, brightnessRunning: bool = False, cityGuideRunning: bool = False, liveBroadcastRunning: bool = False, musicWordRunning: bool = False, notesRunning: bool = False)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.infos.SceneStatusInfo Java class to Python
- aiAssistRunning: bool¶
- aiChatRunning: bool¶
- arPictureRunning: bool = False¶
- audioRecordRunning: bool¶
- brightnessRunning: bool = False¶
- cityGuideRunning: bool = False¶
- customViewRunning: bool¶
- dataclass_json_config = {'undefined': Undefined.EXCLUDE}¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- hasDisplay: bool¶
- liveBroadcastRunning: bool = False¶
- mixRecordRunning: bool¶
- musicWordRunning: bool = False¶
- notesRunning: bool = False¶
- otaRunning: bool¶
- paymentRunning: bool¶
- phoneCallRunning: bool¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶
- translateRunning: bool¶
- videoRecordRunning: bool¶
- wordTipsRunning: bool¶
- class pyrokid_cxr_clientm.extend.infos.ScheduleInfo(id: int, title: str = '', description: str = '', scheduleTime: int = 0, reminderTime: int = 0)[source]¶
Bases:
objectcom.rokid.cxr.client.extend.infos.ScheduleInfo Java class to Python
- dataclass_json_config = {'undefined': Undefined.EXCLUDE}¶
- description: str = ''¶
- classmethod from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) A¶
- classmethod from_json(s: str | bytes | bytearray, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw) A¶
- id: int¶
- reminderTime: int = 0¶
- scheduleTime: int = 0¶
- classmethod schema(*, infer_missing: bool = False, only=None, exclude=(), many: bool = False, context=None, load_only=(), dump_only=(), partial: bool = False, unknown=None) SchemaF[A]¶
- title: str = ''¶
- to_dict(encode_json=False) Dict[str, dict | list | str | int | float | bool | None]¶
- to_json(*, skipkeys: bool = False, ensure_ascii: bool = True, check_circular: bool = True, allow_nan: bool = True, indent: str | int | None = None, separators: Tuple[str, str] | None = None, default: Callable | None = None, sort_keys: bool = False, **kw) str¶