webcface.message module

class webcface.message.Call(msg: dict)[source]

Bases: MessageBase

property args: List[float | bool | str]
property caller_id: int
property caller_member_id: int
property field: str
kind_def = 81
static new(i: int, c: int, r: int, f: str, a: List[float | bool | str]) Call[source]
property target_member_id: int
class webcface.message.CallResponse(msg: dict)[source]

Bases: MessageBase

property caller_id: int
property caller_member_id: int
kind_def = 82
static new(i: int, c: int, s: bool) CallResponse[source]
property started: bool
class webcface.message.CallResult(msg: dict)[source]

Bases: MessageBase

property caller_id: int
property caller_member_id: int
property is_error: bool
kind_def = 83
static new(i: int, c: int, e: bool, r: float | bool | str) CallResult[source]
property result: float | bool | str
class webcface.message.Canvas2D(msg: dict)[source]

Bases: MessageBase

property data: Dict[str, Canvas2DComponentBase]
property field: str
property height: float
property ids: List[str] | None
kind_def = 10
static new(f: str, w: float, h: float, d: Dict[str, Canvas2DComponentBase], l: List[str] | None) Canvas2D[source]
property width: float
class webcface.message.Canvas2DEntry(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 30
property member_id: int
static new(m: int, f: str) Canvas2DEntry[source]
class webcface.message.Canvas2DReq(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 50
property member: str
static new(m: str, f: str, i: int) Canvas2DReq[source]
property req_id: int
class webcface.message.Canvas2DRes(msg: dict)[source]

Bases: MessageBase

property data_diff: Dict[str, Canvas2DComponentBase]
property height: float
property ids: List[str] | None
kind_def = 70
static new(i: int, f: str, w: float, h: float, d: Dict[str, Canvas2DComponentBase], l: List[str] | None) Canvas2DRes[source]
property req_id: int
property sub_field: str
property width: float
class webcface.message.Canvas3D(msg: dict)[source]

Bases: MessageBase

property data: Dict[str, Canvas3DComponentBase]
property field: str
property ids: List[str] | None
kind_def = 11
static new(f: str, d: Dict[str, Canvas3DComponentBase], l: List[str] | None) Canvas3D[source]
class webcface.message.Canvas3DEntry(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 31
property member_id: int
static new(m: int, f: str) Canvas3DEntry[source]
class webcface.message.Canvas3DReq(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 51
property member: str
static new(m: str, f: str, i: int) Canvas3DReq[source]
property req_id: int
class webcface.message.Canvas3DRes(msg: dict)[source]

Bases: MessageBase

property data_diff: Dict[str, Canvas3DComponentBase]
property ids: List[str] | None
kind_def = 71
static new(i: int, f: str, d: Dict[str, Canvas3DComponentBase], l: List[str] | None) Canvas3DRes[source]
property req_id: int
property sub_field: str
class webcface.message.FuncInfo(msg: dict)[source]

Bases: MessageBase

property field: str
property func_info: FuncInfo
kind_def = 84
property member_id: int
static new(f: str, fi: FuncInfo) FuncInfo[source]
static new_full(m: int, f: str, fi: FuncInfo) FuncInfo[source]
class webcface.message.Image(msg: dict)[source]

Bases: MessageBase

property cmp_mode: int
property color_mode: int
property data: bytes
property field: str
property height: int
kind_def = 5
static new(f: str, d: bytes, w: int, h: int, l: int, p: int) Image[source]
property width: int
class webcface.message.ImageEntry(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 25
property member_id: int
static new(m: int, f: str) ImageEntry[source]
class webcface.message.ImageReq(msg: dict)[source]

Bases: MessageBase

property cmp_mode: int | None
property color_mode: int | None
property field: str
property frame_rate: float | None
property height: int | None
kind_def = 45
property member: str
static new(m: str, f: str, i: int | None, r: ImageReq) ImageReq[source]
property quality: int | None
property req_id: int
property width: int | None
class webcface.message.ImageRes(msg: dict)[source]

Bases: MessageBase

property cmp_mode: int
property color_mode: int
property data: bytes
property height: int
kind_def = 65
static new(i: int, f: str, d: bytes, w: int, h: int, l: int, p: int) ImageRes[source]
property req_id: int
property sub_field: str
property width: int
class webcface.message.Log(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 8
property log: List[LogLine]
static new(f: str, lls: List[LogLine]) Log[source]
class webcface.message.LogEntry(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 28
property member_id: int
static new(m: int, f: str) LogEntry[source]
class webcface.message.LogReq(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 48
property member: str
static new(m: str, f: str, i: int) LogReq[source]
property req_id: int
class webcface.message.LogRes(msg: dict)[source]

Bases: MessageBase

kind_def = 68
property log: List[LogLine]
static new(i: int, f: str, lls: List[LogLine]) LogRes[source]
property req_id: int
property sub_field: str
class webcface.message.MessageBase(kind: int, msg: dict)[source]

Bases: object

kind: int
kind_def = -1
msg: dict
class webcface.message.Ping(msg: dict)[source]

Bases: MessageBase

kind_def = 89
static new() Ping[source]
class webcface.message.PingStatus(msg: dict)[source]

Bases: MessageBase

kind_def = 90
static new(s: Dict[int, int]) PingStatus[source]
property status: Dict[int, int]
class webcface.message.PingStatusReq(msg: dict)[source]

Bases: MessageBase

kind_def = 91
static new() PingStatusReq[source]
class webcface.message.Sync(msg: dict)[source]

Bases: MessageBase

kind_def = 87
property member_id: int
static new() Sync[source]
static new_full(m: int, t: int) Sync[source]
property time: datetime
class webcface.message.SyncInit(msg: dict)[source]

Bases: MessageBase

property addr: str
kind_def = 80
property lib_name: str
property lib_ver: str
property member_id: int
property member_name: str
static new(M: str, l: str, v: str) SyncInit[source]
static new_full(M: str, m: int, l: str, v: str, a: str) SyncInit[source]
class webcface.message.SyncInitEnd(msg: dict)[source]

Bases: MessageBase

property hostname: str
kind_def = 88
property member_id: int
static new(n: str, v: str, m: int, h: str) SyncInitEnd[source]
property svr_name: str
property ver: str
class webcface.message.Text(msg: dict)[source]

Bases: MessageBase

property data: str
property field: str
kind_def = 1
static new(f: str, d: str) Text[source]
class webcface.message.TextEntry(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 21
property member_id: int
static new(m: int, f: str) TextEntry[source]
class webcface.message.TextReq(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 41
property member: str
static new(m: str, f: str, i: int) TextReq[source]
property req_id: int
class webcface.message.TextRes(msg: dict)[source]

Bases: MessageBase

property data: str
kind_def = 61
static new(i: int, f: str, d: str) TextRes[source]
property req_id: int
property sub_field: str
class webcface.message.Value(msg: dict)[source]

Bases: MessageBase

property data: List[float]
property field: str
kind_def = 0
static new(f: str, d: List[float]) Value[source]
class webcface.message.ValueEntry(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 20
property member_id: int
static new(m: int, f: str) ValueEntry[source]
class webcface.message.ValueReq(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 40
property member: str
static new(m: str, f: str, i: int) ValueReq[source]
property req_id: int
class webcface.message.ValueRes(msg: dict)[source]

Bases: MessageBase

property data: List[float]
kind_def = 60
static new(i: int, f: str, d: List[float]) ValueRes[source]
property req_id: int
property sub_field: str
class webcface.message.View(msg: dict)[source]

Bases: MessageBase

property data: Dict[str, ViewComponentBase]
property field: str
property ids: List[str] | None
kind_def = 9
static new(f: str, d: Dict[str, ViewComponentBase], l: List[str] | None) View[source]
class webcface.message.ViewEntry(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 29
property member_id: int
static new(m: int, f: str) ViewEntry[source]
class webcface.message.ViewReq(msg: dict)[source]

Bases: MessageBase

property field: str
kind_def = 49
property member: str
static new(m: str, f: str, i: int) ViewReq[source]
property req_id: int
class webcface.message.ViewRes(msg: dict)[source]

Bases: MessageBase

property data_diff: Dict[str, ViewComponentBase]
property ids: List[str] | None
kind_def = 69
static new(i: int, f: str, d: Dict[str, ViewComponentBase], l: List[str] | None) ViewRes[source]
property req_id: int
property sub_field: str
webcface.message.c2b_to_c2d(vb: Dict[str, Canvas2DComponentBase]) dict[source]

Canvas2dComponentBaseクラスからメッセージに変換

webcface.message.c2d_to_c2b(vd: dict) Dict[str, Canvas2DComponentBase][source]

メッセージからCanvas2DComponentBaseクラスに変換

webcface.message.c3b_to_c3d(vb: Dict[str, Canvas3DComponentBase]) dict[source]

Canvas3dComponentBaseクラスからメッセージに変換

webcface.message.c3d_to_c3b(vd: dict) Dict[str, Canvas3DComponentBase][source]

メッセージからCanvas2DComponentBaseクラスに変換

webcface.message.int_to_time(t: int) datetime[source]
webcface.message.logline2msg(lls: List[LogLine]) List[Dict][source]
webcface.message.msg2logline(lm: List[Dict]) List[LogLine][source]
webcface.message.pack(msgs: List[MessageBase]) bytes[source]
webcface.message.time_to_int(t: datetime) int[source]
webcface.message.unpack(packed: bytes) List[MessageBase][source]
webcface.message.vb_to_vd(vb: Dict[str, ViewComponentBase]) dict[source]

ViewComponentBaseクラスからメッセージに変換

webcface.message.vd_to_vb(vd: dict) Dict[str, ViewComponentBase][source]

メッセージからViewComponentBaseクラスに変換