aboutsummaryrefslogtreecommitdiff
path: root/renderer/model.go
blob: dfa46b1c0ecb9b351b45e3181584866988b6c98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package renderer

import (
	"mastodon"
	"web/model"
)

type NavbarData struct {
	User              *mastodon.Account
	NotificationCount int
}

type TimelineData struct {
	Title       string
	Statuses    []*mastodon.Status
	HasNext     bool
	NextLink    string
	HasPrev     bool
	PrevLink    string
	PostContext model.PostContext
	NavbarData  *NavbarData
}

type ThreadData struct {
	Statuses    []*mastodon.Status
	PostContext model.PostContext
	ReplyMap    map[string][]mastodon.ReplyInfo
	NavbarData  *NavbarData
}

type NotificationData struct {
	Notifications []*mastodon.Notification
	HasNext       bool
	NextLink      string
	NavbarData    *NavbarData
}

type UserData struct {
	User       *mastodon.Account
	Statuses   []*mastodon.Status
	HasNext    bool
	NextLink   string
	NavbarData *NavbarData
}

type AboutData struct {
	NavbarData *NavbarData
}

type EmojiData struct {
	Emojis     []*mastodon.Emoji
	NavbarData *NavbarData
}