This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / notificationgetUnreadCount.go
956 B 30 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: org.tangled.temp.notification.getUnreadCount 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 TempNotificationGetUnreadCountNSID = "org.tangled.temp.notification.getUnreadCount" 15) 16 17// TempNotificationGetUnreadCount_Output is the output of a org.tangled.temp.notification.getUnreadCount call. 18type TempNotificationGetUnreadCount_Output struct { 19 Count int64 `json:"count" cborgen:"count"` 20} 21 22// TempNotificationGetUnreadCount calls the XRPC method "org.tangled.temp.notification.getUnreadCount". 23func TempNotificationGetUnreadCount(ctx context.Context, c util.LexClient) (*TempNotificationGetUnreadCount_Output, error) { 24 var out TempNotificationGetUnreadCount_Output 25 if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.notification.getUnreadCount", nil, nil, &out); err != nil { 26 return nil, err 27 } 28 29 return &out, nil 30}