This repository has no description
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: org.tangled.temp.notification.updateSeen
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 TempNotificationUpdateSeenNSID = "org.tangled.temp.notification.updateSeen"
15)
16
17// TempNotificationUpdateSeen_Input is the input argument to a org.tangled.temp.notification.updateSeen call.
18type TempNotificationUpdateSeen_Input struct {
19 // id: ID of the notification to update.
20 Id int64 `json:"id" cborgen:"id"`
21 Read bool `json:"read" cborgen:"read"`
22}
23
24// TempNotificationUpdateSeen calls the XRPC method "org.tangled.temp.notification.updateSeen".
25func TempNotificationUpdateSeen(ctx context.Context, c util.LexClient, input *TempNotificationUpdateSeen_Input) error {
26 if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.notification.updateSeen", nil, input, nil); err != nil {
27 return err
28 }
29
30 return nil
31}