NetConst class

Constructors

NetConst()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
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
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

HTTP_ERROR_ALTER int
error for alter
final
HTTP_ERROR_AUTH_FAILED int
用户未登陆
final
HTTP_ERROR_CODEC_WRONG int
utf8 解码失败
final
HTTP_ERROR_GET_TOKEN_FAILED int
获取token 失败
final
HTTP_ERROR_SERVER_FAIL int
服务器状态非法:http返回404,500等非200的response code
final
HTTP_ERROR_SERVER_OK int
服务器响应ok
final
HTTP_ERROR_SERVER_UNREACHABLE int
服务器不可达:设备无网络,服务器宕机 。。。
final
HTTP_ERROR_TOAST int
error for toast
final
HTTP_ERROR_WRONG_CONTENT_TYPE int
ContentType 非法,只支持 String, JSON
final
HTTP_ERROR_WRONG_FORMATION int
返回格式非法
final