forked from
tangled.org/core
Monorepo for Tangled
1package models
2
3import (
4 "encoding/json"
5 "time"
6)
7
8type BskyPost struct {
9 AuthorDid string
10 Rkey string
11 Text string
12 CreatedAt time.Time
13 Langs []string
14 Tags []string
15 Embed *PostEmbed
16 Facets json.RawMessage
17 LikeCount int64
18 ReplyCount int64
19 RepostCount int64
20 QuoteCount int64
21}
22
23type PostEmbed struct {
24 Images []PostImage `json:"images,omitempty"`
25 External *PostExternal `json:"external,omitempty"`
26 Video *PostVideo `json:"video,omitempty"`
27}
28
29type AspectRatio struct {
30 Width int64 `json:"width"`
31 Height int64 `json:"height"`
32}
33
34type PostImage struct {
35 Fullsize string `json:"fullsize"`
36 Thumb string `json:"thumb"`
37 Alt string `json:"alt"`
38 AspectRatio *AspectRatio `json:"aspectRatio,omitempty"`
39}
40
41type PostExternal struct {
42 Uri string `json:"uri"`
43 Title string `json:"title"`
44 Description string `json:"description"`
45 Thumb string `json:"thumb"`
46}
47
48type PostVideo struct {
49 Playlist string `json:"playlist"`
50 Thumbnail string `json:"thumbnail"`
51 Alt string `json:"alt"`
52}