mirror of
https://github.com/muesli/telephant
synced 2024-11-27 05:40:21 +00:00
59 lines
1.1 KiB
Go
59 lines
1.1 KiB
Go
// Package accounts is chirp's account "plugin" system.
|
|
package accounts
|
|
|
|
import "time"
|
|
|
|
// Post represents a message.
|
|
type Post struct {
|
|
MessageID string
|
|
Body string
|
|
Author string
|
|
AuthorURL string
|
|
AuthorName string
|
|
AuthorID string
|
|
Actor string
|
|
ActorName string
|
|
ReplyToID string
|
|
ReplyToAuthor string
|
|
Avatar string
|
|
URL string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
// MessageEvent describes an incoming message event.
|
|
type MessageEvent struct {
|
|
Account string
|
|
Name string
|
|
Reply bool
|
|
Forward bool
|
|
Mention bool
|
|
Like bool
|
|
Notification bool
|
|
Post Post
|
|
Media []string
|
|
}
|
|
|
|
// ProfileEvent describes a profile event.
|
|
type ProfileEvent struct {
|
|
Username string
|
|
Name string
|
|
Avatar string
|
|
ProfileURL string
|
|
ProfileID string
|
|
Posts int64
|
|
Follows int64
|
|
Followers int64
|
|
}
|
|
|
|
// LoginEvent describes a login event.
|
|
type LoginEvent struct {
|
|
Username string
|
|
Name string
|
|
Avatar string
|
|
ProfileURL string
|
|
ProfileID string
|
|
Posts int64
|
|
Follows int64
|
|
Followers int64
|
|
PostSizeLimit int64
|
|
}
|