2023-01-05 20:51:45 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
type CommunityBlockView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Person PersonSafe `json:"person" url:"person,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommunityFollowerView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
Follower PersonSafe `json:"follower" url:"follower,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommunityModeratorView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommunityPersonBanView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
Person PersonSafe `json:"person" url:"person,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommunityView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
Subscribed bool `json:"subscribed" url:"subscribed,omitempty"`
|
|
|
|
Blocked bool `json:"blocked" url:"blocked,omitempty"`
|
|
|
|
Counts CommunityAggregates `json:"counts" url:"counts,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type PersonBlockView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Person PersonSafe `json:"person" url:"person,omitempty"`
|
|
|
|
Target PersonSafeAlias1 `json:"target" url:"target,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type PersonMentionView struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
PersonMention PersonMention `json:"person_mention" url:"person_mention,omitempty"`
|
|
|
|
Comment Comment `json:"comment" url:"comment,omitempty"`
|
|
|
|
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
Recipient PersonSafeAlias1 `json:"recipient" url:"recipient,omitempty"`
|
|
|
|
Counts CommentAggregates `json:"counts" url:"counts,omitempty"`
|
|
|
|
CreatorBannedFromCommunity bool `json:"creator_banned_from_community" url:"creator_banned_from_community,omitempty"`
|
|
|
|
Subscribed bool `json:"subscribed" url:"subscribed,omitempty"`
|
|
|
|
Saved bool `json:"saved" url:"saved,omitempty"`
|
|
|
|
CreatorBlocked bool `json:"creator_blocked" url:"creator_blocked,omitempty"`
|
|
|
|
MyVote Optional[int16] `json:"my_vote" url:"my_vote,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type PersonViewSafe struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Person PersonSafe `json:"person" url:"person,omitempty"`
|
|
|
|
Counts PersonAggregates `json:"counts" url:"counts,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|