Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
2.3 kB · 74 lines
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475// Code generated by glex; DO NOT EDIT.
// Lexicon schema: place.stream.branding.deleteBlob
package placestream
import ( "context" "io"
glex "github.com/streamplace/glex/runtime" cbg "github.com/whyrusleeping/cbor-gen")
type BrandingDeleteBlob_Input struct { LexiconTypeID string `json:"$type,omitempty"` // broadcaster: DID of the broadcaster. If not provided, uses the server's default broadcaster. Broadcaster *string `json:"broadcaster,omitempty"` // key: Branding asset key (mainLogo, favicon, siteTitle, etc.) Key string `json:"key"`}
// RecordTypeID implements glex.Record.func (t *BrandingDeleteBlob_Input) RecordTypeID() string { return "place.stream.branding.deleteBlob" }
func (t *BrandingDeleteBlob_Input) 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.branding.deleteBlob" return glex.MarshalCBOR(w, &cp)}
func (t *BrandingDeleteBlob_Input) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
type BrandingDeleteBlob_Output struct { LexiconTypeID string `json:"$type,omitempty"` Success bool `json:"success"`}
// RecordTypeID implements glex.Record.func (t *BrandingDeleteBlob_Output) RecordTypeID() string { return "place.stream.branding.deleteBlob" }
func (t *BrandingDeleteBlob_Output) 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.branding.deleteBlob" return glex.MarshalCBOR(w, &cp)}
func (t *BrandingDeleteBlob_Output) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t)}
// BrandingDeleteBlob calls the XRPC method "place.stream.branding.deleteBlob".//// Delete a branding asset blob. Requires admin authorization.func BrandingDeleteBlob(ctx context.Context, c glex.LexClient, input *BrandingDeleteBlob_Input) (*BrandingDeleteBlob_Output, error) { var out BrandingDeleteBlob_Output
if err := c.LexDo(ctx, glex.Procedure, "application/json", "place.stream.branding.deleteBlob", nil, input, &out); err != nil { return nil, err } return &out, nil}