[feature] Stub conversations endpoint (#2853)

This commit is contained in:
tobi 2024-04-18 12:36:02 +02:00 committed by GitHub
commit 431505b3e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 263 additions and 9 deletions

View file

@ -17,19 +17,17 @@
package model
// Conversation represents a conversation with "direct message" visibility.
// Conversation represents a conversation
// with "direct message" visibility.
//
// swagger:model conversation
type Conversation struct {
// REQUIRED
// Local database ID of the conversation.
ID string `json:"id"`
// Participants in the conversation.
Accounts []Account `json:"accounts"`
// Is the conversation currently marked as unread?
Unread bool `json:"unread"`
// OPTIONAL
// The last status in the conversation, to be used for optional display.
// Participants in the conversation.
Accounts []Account `json:"accounts"`
// The last status in the conversation. May be `null`.
LastStatus *Status `json:"last_status"`
}