# Path: mapmyfitness/objects/base.py
# class BaseObject(object):
#     def __init__(self, dict_):
#         self.original_dict = dict_
# 
#         if hasattr(self, 'simple_properties'):
#             for property_key, property_name in self.simple_properties.items():
#                 if property_key in self.original_dict:
#                     if property_name is None:
#                         property_name = property_key
#                     setattr(self, property_name, self.original_dict[property_key])
# 
#         if hasattr(self, 'datetime_properties'):
#             for property_key, property_name in self.datetime_properties.items():
#                 if property_key in self.original_dict:
#                     if property_name is None:
#                         property_name = property_key
#                     setattr(self, property_name, iso_format_to_datetime(self.original_dict[property_key]))


from .base import BaseObject
            from mapmyfitness import MapMyFitness


class ActivityTypeObject(BaseObject):
    simple_properties = {
        'name': None
    }

    @property
    def id(self):

# Path: mapmyfitness/objects/base.py
# class BaseObject(object):
#     def __init__(self, dict_):
#         self.original_dict = dict_
# 
#         if hasattr(self, 'simple_properties'):
#             for property_key, property_name in self.simple_properties.items():
#                 if property_key in self.original_dict:
#                     if property_name is None:
#                         property_name = property_key
#                     setattr(self, property_name, self.original_dict[property_key])
# 
#         if hasattr(self, 'datetime_properties'):
#             for property_key, property_name in self.datetime_properties.items():
#                 if property_key in self.original_dict:
#                     if property_name is None:
#                         property_name = property_key
#                     setattr(self, property_name, iso_format_to_datetime(self.original_dict[property_key]))


# Path: mapmyfitness/objects/activity_type.py
from .base import BaseObject
            from mapmyfitness import MapMyFitness



class ActivityTypeObject(BaseObject):
    simple_properties = {
        'name': None
    }

    @property
    def id(self):

        return int(self.original_dict['_links']['self'][0]['id'])