Exemplo n.º 1
0
 def set_watched_by_feed_offset(feed_unionid, offset, is_watched):
     story_unionid = StoryUnionId(*feed_unionid, offset)
     return UnionStory.set_watched_by_id(story_unionid,
                                         is_watched=is_watched)
Exemplo n.º 2
0
 def get_by_feed_offset(feed_unionid, offset, detail=False):
     story_unionid = StoryUnionId(*feed_unionid, offset)
     return UnionStory.get_by_id(story_unionid, detail=detail)
Exemplo n.º 3
0
 def id(self):
     story = self._user_story or self._story
     return StoryUnionId(self._user_id, story.feed_id, story.offset)
Exemplo n.º 4
0
 def id(self):
     return StoryUnionId(self._user_id, self._story.feed_id,
                         self._story.offset)