function sendNotice($recipient, $message, $avatar = null, $variant = 0, $multicall = false)
    {
        $logins = $this->getLogins($recipient, true);
        if ($logins === false) {
            throw new InvalidArgumentException('recipient = ' . print_r($recipient, true));
        }
        if (!is_string($message)) {
            throw new InvalidArgumentException('message = ' . print_r($message, true));
        }
        $avatarLogin = $this->getLogin($avatar, true);
        if ($avatarLogin === false) {
            throw new InvalidArgumentException('avatar = ' . print_r($avatar, true));
        }
        if (!is_int($variant) || $variant < 0 || $variant > 2) {
            throw new InvalidArgumentException('variant = ' . print_r($variant, true));
        }

        if ($logins) {
            return $this->execute(ucfirst(__FUNCTION__) . 'ToLogin', array($logins, $message, $avatarLogin, $variant), $multicall);
        }
        return $this->execute(ucfirst(__FUNCTION__), array($message, $avatar, $variant), $multicall);
    }