XCloudResponse<T> class

Constructors

XCloudResponse({required int code, required int commandId, required T data})

Properties

code int
param1, 当 code>=0 时 代表成功返回
final
commandId int
final
data → T
返回给上传的数据, 可能为 Map ,可能为基础数据类型
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

byteToString(List<int?>? bytes) String
fromOriginResponse<T>(OriginResponse originResponse) XCloudResponse<T>
从原始数据解析为 Flutter Json数据 so和服务器交互的数据为: {"msg":"SUCCESS","code":2000,"data":false} 但是回调给java的数据只有 false