setAgentToken method

void setAgentToken(
  1. String token
)

Implementation

void setAgentToken(String token) {
  if (this._accountType < 0) {
    this._accountType = 1;
  }

  if (this._accountType != 1) {
    throw new Exception("your account may has be inited as app");
  } else {
    this._agentToken = token;
  }
}