Live video on the AT Protocol
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package streamplace
4
5// schema: place.stream.live.getLiveUsers
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// LiveGetLiveUsers_Output is the output of a place.stream.live.getLiveUsers call.
14type LiveGetLiveUsers_Output struct {
15 Streams []*Livestream_LivestreamView `json:"streams,omitempty" cborgen:"streams,omitempty"`
16}
17
18// LiveGetLiveUsers calls the XRPC method "place.stream.live.getLiveUsers".
19func LiveGetLiveUsers(ctx context.Context, c util.LexClient, before string, limit int64) (*LiveGetLiveUsers_Output, error) {
20 var out LiveGetLiveUsers_Output
21
22 params := map[string]interface{}{}
23 if before != "" {
24 params["before"] = before
25 }
26 if limit != 0 {
27 params["limit"] = limit
28 }
29 if err := c.LexDo(ctx, util.Query, "", "place.stream.live.getLiveUsers", params, nil, &out); err != nil {
30 return nil, err
31 }
32
33 return &out, nil
34}