\r\n

51Degrees Device Detection Python  4.2Newer Version 4.3

Device Detection services for 51Degrees Pipeline
  • device-detection-python
  • fiftyone_devicedetection_onpremise
  • fiftyone_devicedetection_onpremise
  • devicedetection_datafile
  • DeviceDetectionDataFile

device-detection-python.fiftyone_devicedetection_onpremise.fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile Class Reference

Detailed Description

Extension of the DataFile class for DeviceDetection This helps construct the update url based on url parameters provided by the engine, provides methods to get the published date and update date of the datafile and refreshes the on premise engine when the datafile is updated.

Inheritance diagram for device-detection-python.fiftyone_devicedetection_onpremise.fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile:

[legend]

Collaboration diagram for device-detection-python.fiftyone_devicedetection_onpremise.fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile:

[legend]

Public Member Functions

def  get_url_formatter (self)
Generate a url for the data file update service to call These parameters are passed in to the constructor of the Device Detection On Premise engine. More...
def  swig_date_to_date (self, swig_date)
Helper function to convert the SWIG wrapper date object into a python date. More...
def  get_date_published (self)
Get the date the datafile was published. More...
def  get_next_update (self)
Get the date of the next datafile update. More...
def  refresh (self)
Once the datafile has updated, refresh the engine.

Public Attributes

 download

Member Function Documentation

◆ get_date_published()

def device-detection-python.fiftyone_devicedetection_onpremise.fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.get_date_published (   self )

Get the date the datafile was published.

Returns
date

◆ get_next_update()

def device-detection-python.fiftyone_devicedetection_onpremise.fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.get_next_update (   self )

Get the date of the next datafile update.

Returns
date

◆ get_url_formatter()

def device-detection-python.fiftyone_devicedetection_onpremise.fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.get_url_formatter (   self )

Generate a url for the data file update service to call These parameters are passed in to the constructor of the Device Detection On Premise engine.

Returns
string : URL

◆ swig_date_to_date()

def device-detection-python.fiftyone_devicedetection_onpremise.fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.swig_date_to_date (   self,
  swig_date  
)

Helper function to convert the SWIG wrapper date object into a python date.

Returns
date