tangled
alpha
login
or
join now
moth11.net
/
rvcx
3
fork
atom
backend for xcvr appview
3
fork
atom
overview
issues
4
pulls
pipelines
add smv types
moth11.net
5 months ago
6c04dafc
012f9e61
+23
-1
1 changed file
expand all
collapse all
unified
split
server
internal
types
lexicons.go
+23
-1
server/internal/types/lexicons.go
···
228
228
}
229
229
230
230
type MediaView struct {
231
231
-
Type string `json:"$type,const=org.xcvr.lrc.defs#messageView"`
231
231
+
Type string `json:"$type,const=org.xcvr.lrc.defs#mediaView"`
232
232
URI string `json:"uri"`
233
233
Author ProfileView `json:"author"`
234
234
Image *ImageView `json:"imageView,omitempty"`
···
262
262
Alias: (*Alias)(&m),
263
263
})
264
264
}
265
265
+
266
266
+
type SignedMediaView struct {
267
267
+
Type string `json:"$type,const=org.xcvr.lrc.defs#signedMediaView"`
268
268
+
URI string `json:"uri"`
269
269
+
Author ProfileView `json:"author"`
270
270
+
Image *ImageView `json:"imageView,omitempty"`
271
271
+
Nick *string `json:"nick,omitempty"`
272
272
+
Color *uint32 `json:"color,omitempty"`
273
273
+
Signet SignetView `json:"signet"`
274
274
+
PostedAt time.Time `json:"postedAt"`
275
275
+
}
276
276
+
277
277
+
func (m SignedMediaView) MarshalJSON() ([]byte, error) {
278
278
+
type Alias SignedMediaView
279
279
+
return json.Marshal(&struct {
280
280
+
Type string `json:"$type"`
281
281
+
*Alias
282
282
+
}{
283
283
+
Type: "org.xcvr.lrc.defs#signedMediaView",
284
284
+
Alias: (*Alias)(&m),
285
285
+
})
286
286
+
}