SyTokenBusinessCode enum

访问凭证业务码(服务端 errcode.Credential*)。

出现在 POST /api/rtc/token、/api/rtc/token/renew 的 code,以及凭证被停用时 信令断开后的 onError。展示给用户时优先用服务端 msg。

Inheritance
Available extensions

Values

suspended → const SyTokenBusinessCode

4031 访问凭证已暂停(管理员可恢复)。

const SyTokenBusinessCode(4031)
revoked → const SyTokenBusinessCode

4032 访问凭证已吊销(不可恢复)。

const SyTokenBusinessCode(4032)
expired → const SyTokenBusinessCode

4033 访问凭证已过期。

const SyTokenBusinessCode(4033)

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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 Methods

tryParse(int? code) → SyTokenBusinessCode?

Constants

invalid → const SyTokenBusinessCode
旧名字。4031 的真实含义是凭证已暂停。
privilegeDenied → const SyTokenBusinessCode
旧名字。4033 的真实含义是凭证已过期。
values → const List<SyTokenBusinessCode>
A constant List of the values in this enum, in order of their declaration.