1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package teal
4
5// schema: fm.teal.alpha.feed.getActorFeed
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// AlphaFeedGetActorFeed_Output is the output of a fm.teal.alpha.feed.getActorFeed call.
14type AlphaFeedGetActorFeed_Output struct {
15 Plays []*AlphaFeedDefs_PlayView `json:"plays" cborgen:"plays"`
16}
17
18// AlphaFeedGetActorFeed calls the XRPC method "fm.teal.alpha.feed.getActorFeed".
19//
20// authorDID: The author's DID for the play
21// cursor: The cursor to start the query from
22// limit: The upper limit of tracks to get per request. Default is 20, max is 50.
23func AlphaFeedGetActorFeed(ctx context.Context, c *xrpc.Client, authorDID string, cursor string, limit int64) (*AlphaFeedGetActorFeed_Output, error) {
24 var out AlphaFeedGetActorFeed_Output
25
26 params := map[string]interface{}{
27 "authorDID": authorDID,
28 "cursor": cursor,
29 "limit": limit,
30 }
31 if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.feed.getActorFeed", params, nil, &out); err != nil {
32 return nil, err
33 }
34
35 return &out, nil
36}