setAppToken method

void setAppToken(
  1. String token
)

Implementation

void setAppToken(String token) {
  if (this._accountType < 0) {
    this._accountType = 2;
  }

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