'Return the proper subscription type based on current state.'

def _subscription(self):

    if (self['to'] and self['from']):
        return 'both'
    elif self['from']:
        return 'from'
    elif self['to']:
        return 'to'
    else:
        return 'none'
