Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
4.3 kB · 143 lines
Go
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144// Code generated by glex; DO NOT EDIT.
// Lexicon schema: place.stream.defs
package placestream
import ( "io"
glex "github.com/streamplace/glex/runtime" cbg "github.com/whyrusleeping/cbor-gen" appbsky "stream.place/streamplace/pkg/appbsky")
// Defs_ActivityGame is a "activityGame" in the place.stream.defs schema.//// A game from the gamesgamesgamesgames catalog, identified by its AT URI.type Defs_ActivityGame struct { LexiconTypeID string `json:"$type,omitempty"` // name: Cached display name of the game. Name *string `json:"name,omitempty"` Uri string `json:"uri"`}
// RecordTypeID implements glex.Record.func (t *Defs_ActivityGame) RecordTypeID() string { return "place.stream.defs#activityGame" }
func (t *Defs_ActivityGame) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.defs#activityGame" return glex.MarshalCBOR(w, &cp)}
func (t *Defs_ActivityGame) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
// Defs_ActivityLabel is a "activityLabel" in the place.stream.defs schema.//// A non-game activity with a well-known label.type Defs_ActivityLabel struct { LexiconTypeID string `json:"$type,omitempty"` Label string `json:"label"`}
// RecordTypeID implements glex.Record.func (t *Defs_ActivityLabel) RecordTypeID() string { return "place.stream.defs#activityLabel" }
func (t *Defs_ActivityLabel) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.defs#activityLabel" return glex.MarshalCBOR(w, &cp)}
func (t *Defs_ActivityLabel) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
// Defs_BlockView is a "blockView" in the place.stream.defs schema.type Defs_BlockView struct { LexiconTypeID string `json:"$type,omitempty"` Blocker appbsky.ActorDefs_ProfileViewBasic `json:"blocker"` Cid string `json:"cid"` IndexedAt string `json:"indexedAt"` Record appbsky.GraphBlock `json:"record"` Uri string `json:"uri"`}
// RecordTypeID implements glex.Record.func (t *Defs_BlockView) RecordTypeID() string { return "place.stream.defs#blockView" }
func (t *Defs_BlockView) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.defs#blockView" return glex.MarshalCBOR(w, &cp)}
func (t *Defs_BlockView) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
// Defs_Rendition is a "rendition" in the place.stream.defs schema.type Defs_Rendition struct { LexiconTypeID string `json:"$type,omitempty"` Name string `json:"name"`}
// RecordTypeID implements glex.Record.func (t *Defs_Rendition) RecordTypeID() string { return "place.stream.defs#rendition" }
func (t *Defs_Rendition) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.defs#rendition" return glex.MarshalCBOR(w, &cp)}
func (t *Defs_Rendition) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
// Defs_Renditions is a "renditions" in the place.stream.defs schema.type Defs_Renditions struct { LexiconTypeID string `json:"$type,omitempty"` Renditions []Defs_Rendition `json:"renditions"`}
// RecordTypeID implements glex.Record.func (t *Defs_Renditions) RecordTypeID() string { return "place.stream.defs#renditions" }
func (t *Defs_Renditions) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.defs#renditions" return glex.MarshalCBOR(w, &cp)}
func (t *Defs_Renditions) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}