public function ValidateUser()
{
if ($this->GetOAuth2Info() === null) {
throw new ValidationException('OAuth2Info', null, 'OAuth 2.0 configuration is required.');
}
parent::ValidateOAuth2Info();
if ($this->GetUserAgent() === null || trim($this->GetUserAgent()) === '') {
$this->SetUserAgent(self::DEFAULT_USER_AGENT);
} else {
if (mb_check_encoding($this->GetUserAgent(), 'ASCII') === false) {
throw new ValidationException('userAgent', $this->GetUserAgent(), 'The property userAgent must contain only ASCII characters');
}
}
if ($this->GetDeveloperToken() === null) {
throw new ValidationException('developerToken', null, 'developerToken is required and cannot be null.');
}
}