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.updatePreferences
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 TempNotificationUpdatePreferencesNSID = "org.tangled.temp.notification.updatePreferences"
15)
16
17// TempNotificationUpdatePreferences_Input is the input argument to a org.tangled.temp.notification.updatePreferences call.
18type TempNotificationUpdatePreferences_Input struct {
19 EmailNotifications *bool `json:"emailNotifications,omitempty" cborgen:"emailNotifications,omitempty"`
20 Followed *bool `json:"followed,omitempty" cborgen:"followed,omitempty"`
21 IssueClosed *bool `json:"issueClosed,omitempty" cborgen:"issueClosed,omitempty"`
22 IssueCommented *bool `json:"issueCommented,omitempty" cborgen:"issueCommented,omitempty"`
23 IssueCreated *bool `json:"issueCreated,omitempty" cborgen:"issueCreated,omitempty"`
24 PullCommented *bool `json:"pullCommented,omitempty" cborgen:"pullCommented,omitempty"`
25 PullCreated *bool `json:"pullCreated,omitempty" cborgen:"pullCreated,omitempty"`
26 PullMerged *bool `json:"pullMerged,omitempty" cborgen:"pullMerged,omitempty"`
27 RepoStarred *bool `json:"repoStarred,omitempty" cborgen:"repoStarred,omitempty"`
28 UserMentioned *bool `json:"userMentioned,omitempty" cborgen:"userMentioned,omitempty"`
29}
30
31// TempNotificationUpdatePreferences calls the XRPC method "org.tangled.temp.notification.updatePreferences".
32func TempNotificationUpdatePreferences(ctx context.Context, c util.LexClient, input *TempNotificationUpdatePreferences_Input) error {
33 if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.notification.updatePreferences", nil, input, nil); err != nil {
34 return err
35 }
36
37 return nil
38}