<gh_stars>0
from q2_api_client.clients.base_q2_client import BaseQ2Client
from q2_api_client.endpoints.mobile_ws_endpoints import PreLogonEndpoint


class PreLogonClient(BaseQ2Client):

    def pre_logon_user(self):
        """GET /mobilews/preLogonUser

        :return: Response object
        :rtype: requests.Response
        """
        endpoint = PreLogonEndpoint.PRE_LOGON_USER.value
        return self._get(url=self._build_url(endpoint))

    def trigger_pre_logon_user(self, request_body):
        """POST /mobilews/preLogonUser

        :param dict request_body: Dictionary object to send in the body of the request
        :return: Response object
        :rtype: requests.Response
        """
        endpoint = PreLogonEndpoint.PRE_LOGON_USER.value
        return self._post(url=self._build_url(endpoint), json=request_body)

    def pre_logon_user_clear_cache(self):
        """GET /mobilews/preLogonUser/clearCache

        :return: Response object
        :rtype: requests.Response
        """
        endpoint = PreLogonEndpoint.PRE_LOGON_USER_CLEAR_CACHE.value
        return self._get(url=self._build_url(endpoint))

from q2_api_client.clients.base_q2_client import BaseQ2Client
from q2_api_client.endpoints.mobile_ws_endpoints import PreLogonEndpoint


class PreLogonClient(BaseQ2Client):

    def pre_logon_user(self):
        """GET /mobilews/preLogonUser

        :return: Response object
        :rtype: requests.Response
        """
        endpoint = PreLogonEndpoint.PRE_LOGON_USER.value
        return self._get(url=self._build_url(endpoint))

    def trigger_pre_logon_user(self, request_body):
        """POST /mobilews/preLogonUser

        :param dict request_body: Dictionary object to send in the body of the request
        :return: Response object
        :rtype: requests.Response
        """
        endpoint = PreLogonEndpoint.PRE_LOGON_USER.value
        return self._post(url=self._build_url(endpoint), json=request_body)

    def pre_logon_user_clear_cache(self):
        """GET /mobilews/preLogonUser/clearCache

        :return: Response object
        :rtype: requests.Response
        """
        endpoint = PreLogonEndpoint.PRE_LOGON_USER_CLEAR_CACHE.value
        return self._get(url=self._build_url(endpoint))
GET /mobilews/preLogonUser          :return: Response object         :rtype: requests.Response POST /mobilews/preLogonUser          :param dict request_body: Dictionary object to send in the body of the request         :return: Response object         :rtype: requests.Response GET /mobilews/preLogonUser/clearCache          :return: Response object         :rtype: requests.Response