Exemple #1
0
 def __init__(self, channel, body):
     self.channel = Channel.find_or_create(channel)
     self.body = body
Exemple #2
0
 def __init__(self, action_type, channel):
     self.channel = Channel.find_or_create(channel)
     self.type = action_type
     self.perform = getattr(self, self.type_mapper.get(self.type))