MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / NavDTO

Class NavDTO

src/wechaty/schema.py:43–61  ·  view source on GitHub ↗

the data transfer object of plugin list

Source from the content-addressed store, hash-verified

41
42@dataclass
43class NavDTO:
44 """the data transfer object of plugin list"""
45 name: str # name of plugin
46 status: int # status of plugin: 0 / 1
47
48 view_url: Optional[str] = None
49 author: Optional[str] = None # name of author
50 avatar: Optional[str] = None # avatar of author
51 author_link: Optional[str] = None # introduction link of author
52 icon: Optional[str] = None # avatar of author
53
54 def update_metadata(self, nav_metadata: NavMetadata) -> None:
55 """update the field with nav data
56 """
57 self.author = nav_metadata.author
58 self.author_link = nav_metadata.author_link
59 self.avatar = nav_metadata.avatar
60 self.icon = nav_metadata.icon
61 self.view_url = nav_metadata.view_url
62
63
64def success(data: Any) -> Response:

Callers 1

get_plugins_navMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected