misskey.go 926 B

123456789101112131415161718192021222324252627
  1. package mastodon
  2. type MisskeyStatus struct {
  3. ID string `json:"id"`
  4. User AccountMisskey `json:"user"`
  5. Renote *MisskeyStatus `json:"renote"`
  6. CreatedAt CreatedAt `json:"createdAt"`
  7. Visibility string `json:"visibility"`
  8. CW string `json:"cw"`
  9. URL string `json:"url"`
  10. Text string `json:"text"`
  11. Files []Attachment `json:"files"`
  12. RenoteCount int64 `json:"renoteCount"`
  13. RepliesCount int64 `json:"repliesCount"`
  14. Reactions map[string]int `json:"reactions"`
  15. }
  16. type AccountMisskey struct {
  17. ID string `json:"id"`
  18. Host string `json:"host"`
  19. Name string `json:"name"`
  20. Username string `json:"username"`
  21. AvatarURL string `json:"avatarUrl"`
  22. IsBot bool `json:"isBot"`
  23. }