\r\n

51Degrees Device Detection Python  4.4

Device Detection services for 51Degrees Pipeline

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 fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile:

[legend]

Collaboration diagram for fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile:

[legend]

Public Member Functions

def  __init__ (self, *args, **kwargs)
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. More...

Public Attributes

Constructor & Destructor Documentation

◆ __init__()

def fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.__init__ (   self,
*   args,
**   kwargs  
)

Member Function Documentation

◆ get_date_published()

def fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.get_date_published (   self )

Get the date the datafile was published.

Returns
date

◆ get_next_update()

def fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.get_next_update (   self )

Get the date of the next datafile update.

Returns
date

◆ get_url_formatter()

def 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

◆ refresh()

def fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.refresh (   self )

Once the datafile has updated, refresh the engine.

◆ swig_date_to_date()

def 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

Member Data Documentation

◆ download

fiftyone_devicedetection_onpremise.devicedetection_datafile.DeviceDetectionDataFile.download