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