__author__ = 'alisonbento'

import src.base.arrayparsableentity as parsable


class HomeShellAppliance(parsable.ArrayParsableEntity):

    def __init__(self):
        self.id = 0
        self.package = None
        self.key = None
        self.type = None
        self.name = None
        self.address = None
        self.created = None
        self.modified = None
        self.hash = None

    def to_array(self):
        return {
            'id': self.id,
            'package': self.package,
            'type': self.type,
            'name': self.name
        }

__author__ = 'alisonbento'

import src.base.arrayparsableentity as parsable


class HomeShellAppliance(parsable.ArrayParsableEntity):

    def __init__(self):
        self.id = 0
        self.package = None
        self.key = None
        self.type = None
        self.name = None
        self.address = None
        self.created = None
        self.modified = None
        self.hash = None

    def to_array(self):
        return {
            'id': self.id,
            'package': self.package,
            'type': self.type,
            'name': self.name
        }
