Source code for gamebench_api_client.models.dataframes.generic.generic_models

""" All modules that use the GenericMediator.

    The classes inherit from the AbstractGenericModel.
    Each model is kept as its own class so new behavior can be added
    individually as needed.
"""

from gamebench_api_client.models.dataframes.generic.abstract_generic import AbstractGenericModel


[docs]class FpsStability(AbstractGenericModel): """ Object to set the FPS Stability information for a session.""" METRIC_PATH = '/fpsStability'
[docs]class Keyword(AbstractGenericModel): """ Object to set the results for a keyword search.""" METRIC_PATH = '/typeahead'
[docs]class Markers(AbstractGenericModel): """ Object to set the Markers information for a session.""" METRIC_PATH = '/markers'
[docs]class SessionNotes(AbstractGenericModel): """ Object to set the Session Notes for a session.""" METRIC_PATH = '/notes'
[docs]class SessionSummary(AbstractGenericModel): """ Object to set the Session Summary information for a session. Instance variables represent the inner dictionaries present in the SessionSummary DataFrame. They return a DataFrame with only that data in it. """ METRIC_PATH = ''
[docs] def __init__(self, **request_parameters): super().__init__(**request_parameters) self.app = self.get_data().filter(['app']) self.device = self.get_data().filter(['device']) self.location = self.get_data().filter(['location']) self.metrics = self.get_data().filter(['metrics']) self.network_app_usage = self.get_data().filter(['networkAppUsage'])