'Determines the platform type for mobile app making the request against user_agent.
Returns:
None if request app does not belong to one of the supported mobile platforms
else returns an instance of corresponding mobile platform.'

def _get_platform(self, request, user_agent):

    if is_request_from_mobile_app(request):
        return MobilePlatform.get_instance(user_agent)
