Beispiel #1
0
    def prepare_post(self, data):
        if not data:
            return tuple()

        return (
            Post.from_response_data(data, self.api),
        )
Beispiel #2
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),
     )
Beispiel #3
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),
     )
Beispiel #4
0
    def prepare_post(self, data):
        if not data:
            return tuple()

        return (Post.from_response_data(data, self.api), )