2017-08-29 05:09:17 +00:00
|
|
|
// Package accounts is chirp's account "plugin" system.
|
|
|
|
package accounts
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
// Post represents a message.
|
|
|
|
type Post struct {
|
2019-05-01 15:15:56 +00:00
|
|
|
MessageID string
|
2017-08-29 05:09:17 +00:00
|
|
|
Body string
|
|
|
|
Author string
|
2019-05-02 07:23:11 +00:00
|
|
|
AuthorURL string
|
2017-08-29 05:09:17 +00:00
|
|
|
AuthorName string
|
2019-05-06 18:16:20 +00:00
|
|
|
AuthorID string
|
2017-08-29 05:09:17 +00:00
|
|
|
Actor string
|
|
|
|
ActorName string
|
2019-05-01 15:15:56 +00:00
|
|
|
ReplyToID string
|
2017-08-29 05:09:17 +00:00
|
|
|
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
|
2017-08-30 23:29:21 +00:00
|
|
|
Media []string
|
2017-08-29 05:09:17 +00:00
|
|
|
}
|
|
|
|
|
2019-05-06 18:16:20 +00:00
|
|
|
// ProfileEvent describes a profile event.
|
|
|
|
type ProfileEvent struct {
|
2019-05-02 08:37:29 +00:00
|
|
|
Username string
|
|
|
|
Name string
|
|
|
|
Avatar string
|
|
|
|
ProfileURL string
|
2019-05-06 18:16:20 +00:00
|
|
|
ProfileID string
|
2019-05-05 12:44:41 +00:00
|
|
|
Posts int64
|
|
|
|
Follows int64
|
|
|
|
Followers int64
|
2017-08-29 05:09:17 +00:00
|
|
|
}
|
2019-05-06 18:16:20 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|