this is based on calsyslab project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
555 B

  1. from dataclasses import dataclass
  2. import datetime
  3. from typing import Iterable, List
  4. @dataclass
  5. class ForumPost:
  6. userName: str = '-1'
  7. status: str = '-1'
  8. reputation: str = '-1'
  9. interest: str = '-1'
  10. sign: str = '-1'
  11. post: str = '-1'
  12. feedback: str = '-1'
  13. datePosted: datetime = datetime.datetime(1970,1,1)
  14. @dataclass
  15. class ForumTopic:
  16. topicId: str
  17. topicName: str
  18. href: str
  19. postList: List[ForumPost]
  20. @dataclass
  21. class ForumListing:
  22. boardName: str
  23. topicsNum: int
  24. topicList: List[ForumTopic]