Example #1
0
 def prepare_channel_subscription(self, data):
     return (
         Channel.from_response_data(data.get('channel', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #2
0
 def prepare_block(self, data):
     return (
         User.from_response_data(data.get('blocked_user', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #3
0
 def prepare_stream_marker(self, data):
     return (
         SimpleValueModel.from_response_data(data.get('marker', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #4
0
 def prepare_user_follow(self, data):
     return (
         User.from_response_data(data.get('follows_user', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #5
0
 def prepare_mute(self, data):
     return (
         User.from_response_data(data.get('muted_user', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #6
0
 def prepare_channel_subscription(self, data):
     return (
         Channel.from_response_data(data.get('channel', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #7
0
 def prepare_star(self, data):
     return (
         Post.from_response_data(data.get('post', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #8
0
 def prepare_stream_marker(self, data):
     return (
         SimpleValueModel.from_response_data(data.get('marker', {}),
                                             self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #9
0
 def prepare_block(self, data):
     return (
         User.from_response_data(data.get('blocked_user', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #10
0
 def prepare_mute(self, data):
     return (
         User.from_response_data(data.get('muted_user', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #11
0
 def prepare_user_follow(self, data):
     return (
         User.from_response_data(data.get('follows_user', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )
Example #12
0
 def prepare_star(self, data):
     return (
         Post.from_response_data(data.get('post', {}), self.api),
         User.from_response_data(data.get('user', {}), self.api),
     )