WssBridgePackData class Null safety

Constructors

WssBridgePackData(String route, int? reqId, dynamic message)
  • @param route 路由
  • @param reqId 请求序号
  • @param message 报文数据
  • Properties

    hashCode int
    The hash code for this object. [...]
    read-only, inherited
    message ↔ dynamic
    read / write
    reqId int?
    read / write
    route String
    read / write
    runtimeType Type
    A representation of the runtime type of the object.
    read-only, inherited

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent method or property is accessed. [...]
    inherited
    toJson() Map<String, dynamic>
    转换为JSON字符串
    toString() String
    A string representation of this object. [...]
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator. [...]
    inherited

    Static Methods

    deserialize(dynamic data, String? pwd) WssBridgePackData?
    将收到的数据进行反序列化,采用随机生成iv和key的AES解密算法,CBC、Pkcs7 [...]
    getMd5(String data) String
    计算md5编码 [...]
    serialize(WssBridgePackData pack, String? pwd, bool binary) → dynamic
    将数据包进行序列化,采用随机生成iv和key的AES加密算法,CBC、Pkcs7 [...]

    Constants

    CODE_CALL → const Map<String, Object>
    const {'code' : 4104, 'data' : 'call'}
    CODE_CLOSE → const Map<String, Object>
    const {'code' : 4102, 'data' : 'close'}
    CODE_ERROR → const Map<String, Object>
    const {'code' : 4103, 'data' : 'error'}
    CODE_RETRY → const Map<String, Object>
    状态 [...]
    const {'code' : 4101, 'data' : 'retry'}
    ROUTE_HEARTICK → const String
    路由
    '\$heartick\$'
    ROUTE_RESPONSE → const String
    '\$response\$'