aboutsummaryrefslogtreecommitdiff
path: root/backend/general/profiles.go
blob: b545e60caa332e4f3780587d4833d29c6f21e6c4 (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
package general

type Profile struct {
	Handle      string
	DisplayName string
	AvatarURL   string
	BannerURL   string
	Pronouns    string
}

type ProfileRecord struct {
	DisplayName string `json:"displayName"`
	Avatar      *struct {
		Ref struct {
			Link string `json:"$link"`
		} `json:"ref"`
	} `json:"avatar,omitempty"`
	Banner *struct {
		Ref struct {
			Link string `json:"$link"`
		} `json:"ref"`
	} `json:"banner,omitempty"`
	Pronouns string `json:"pronouns"`
}