UNPKG

theta-ble-client-react-native

Version:

This library provides a way to control RICOH THETA using

81 lines (67 loc) 1.63 kB
import type { CameraPowerEnum, ChargingStateEnum, CommandErrorDescriptionEnum, ConnectedWifiInfo, NetworkTypeEnum, PeripheralDevice, PluginControl, ThetaState, } from '../service'; export interface BaseNotify { deviceId: number characteristic: string, error?: NotifyError, /* eslint-disable-next-line @typescript-eslint/no-explicit-any */ params?: any, } export interface NotifyError { message: string, params?: string, } export interface BatteryLevelNotify extends BaseNotify { params?: { batteryLevel: number, } } export interface BatteryStatusNotify extends BaseNotify { params?: { batteryState: ChargingStateEnum, } } export interface CameraPowerNotify extends BaseNotify { params?: { cameraPower: CameraPowerEnum, } } export interface CommandErrorDescriptionNotify extends BaseNotify { params?: { commandErrorDescription: CommandErrorDescriptionEnum, } } export interface PluginControlNotify extends BaseNotify { params?: PluginControl, } export interface ThetaStateNotify extends BaseNotify { params?: ThetaState, } export interface ScanPeripheralDeviceNotify extends BaseNotify { params?: PeripheralDevice, } export interface ScanPeripheralDeviceCompletedNotify extends BaseNotify { params?: PeripheralDevice[], } export interface NetworkTypeNotify extends BaseNotify { params?: { networkType: NetworkTypeEnum }, } export interface ConnectedWifiInfoNotify extends BaseNotify { params?: ConnectedWifiInfo, } export interface ScanSsidNotify extends BaseNotify { params?: { ssid?: string, ssidList?: string[], }, }