aboutsummaryrefslogtreecommitdiff
path: root/backend/general/profiles.go
blob: be74364140a551a99b73133e76ef7b09bb124283 (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
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"`
}

type ProfileRecordResponse struct {
	URI   string        `json:"uri"`
	Value ProfileRecord `json:"value"`
}