aioqzone-feed Types¶
- class aioqzone_feed.type.FeedContent(appid, typeid, fid, abstime, uin, nickname, curkey=None, unikey=None, topicId='', islike=False, entities=<factory>, forward=None, media=<factory>)¶
FeedContent is feed with contents. This might be the common structure to represent a feed as what it's known.
- curkey: str | None = None¶
The identifier to this feed. May be a url, or just a identifier string.
- forward: FeedContent | str | None = None¶
unikey to the feed, or the content itself.
- classmethod from_feed(obj, **kwds)¶
- islike: bool = False¶
- set_detail(obj)¶
- topicId: str = ''¶
This is used to reply to this feed, or can be used to update this feed if current user own this feed.
在 0.9.2a1 版本加入.
- unikey: str | None = None¶
The identifier to the original content. May be a url in all kinds (sometimes not strictly in a correct format, but it is from the meaning)
- media: List[VisualMedia]¶
- appid: int¶
- typeid: int¶
- fid: str¶
Feed id, a hex string with 24/32 chars, or a much shorter placeholder.
备注
fid is not a enough identifier for ANY feed. For comman feed that appid==311, it is a 24 or 32 length hex string, which might be satisfied. But for shares that appid!=311, it is a short string and is commonly used by multiple shares. So do not distinguish all feeds on this field.
- abstime: int¶
Feed created time. common alias: created_time
- nickname: str¶
Feed owner nickname.