user.nim 875 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import options
  2. import common
  3. type
  4. RawUser* = object
  5. idStr*: string
  6. name*: string
  7. screenName*: string
  8. location*: string
  9. description*: string
  10. entities*: Entities
  11. createdAt*: string
  12. followersCount*: int
  13. friendsCount*: int
  14. favouritesCount*: int
  15. statusesCount*: int
  16. mediaCount*: int
  17. verified*: bool
  18. extIsBlueVerified*: bool
  19. protected*: bool
  20. profileLinkColor*: string
  21. profileBannerUrl*: string
  22. profileImageUrlHttps*: string
  23. profileImageExtensions*: Option[ImageExtensions]
  24. pinnedTweetIdsStr*: seq[string]
  25. Entities* = object
  26. url*: Urls
  27. description*: Urls
  28. Urls* = object
  29. urls*: seq[Url]
  30. ImageExtensions = object
  31. mediaColor*: tuple[r: Ok]
  32. Ok = object
  33. ok*: Palette
  34. Palette = object
  35. palette*: seq[tuple[rgb: Color]]
  36. Color* = object
  37. red*, green*, blue*: int