1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.feed.getQuotes
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// FeedGetQuotes_Output is the output of a app.bsky.feed.getQuotes call.
14type FeedGetQuotes_Output struct {
15 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17 Posts []*FeedDefs_PostView `json:"posts" cborgen:"posts"`
18 Uri string `json:"uri" cborgen:"uri"`
19}
20
21// FeedGetQuotes calls the XRPC method "app.bsky.feed.getQuotes".
22//
23// cid: If supplied, filters to quotes of specific version (by CID) of the post record.
24// uri: Reference (AT-URI) of post record
25func FeedGetQuotes(ctx context.Context, c util.LexClient, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) {
26 var out FeedGetQuotes_Output
27
28 params := map[string]interface{}{}
29 if cid != "" {
30 params["cid"] = cid
31 }
32 if cursor != "" {
33 params["cursor"] = cursor
34 }
35 if limit != 0 {
36 params["limit"] = limit
37 }
38 params["uri"] = uri
39 if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getQuotes", params, nil, &out); err != nil {
40 return nil, err
41 }
42
43 return &out, nil
44}