1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.notification.getUnreadCount
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[derive(
9 serde::Serialize,
10 serde::Deserialize,
11 Debug,
12 Clone,
13 PartialEq,
14 Eq,
15 bon::Builder,
16 jacquard_derive::IntoStatic
17)]
18#[builder(start_fn = new)]
19#[serde(rename_all = "camelCase")]
20pub struct GetUnreadCount {
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 pub priority: std::option::Option<bool>,
23 #[serde(skip_serializing_if = "std::option::Option::is_none")]
24 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>,
25}
26
27#[jacquard_derive::lexicon]
28#[derive(
29 serde::Serialize,
30 serde::Deserialize,
31 Debug,
32 Clone,
33 PartialEq,
34 Eq,
35 jacquard_derive::IntoStatic
36)]
37#[serde(rename_all = "camelCase")]
38pub struct GetUnreadCountOutput<'a> {
39 pub count: i64,
40}
41
42///Response type for
43///app.bsky.notification.getUnreadCount
44pub struct GetUnreadCountResponse;
45impl jacquard_common::xrpc::XrpcResp for GetUnreadCountResponse {
46 const NSID: &'static str = "app.bsky.notification.getUnreadCount";
47 const ENCODING: &'static str = "application/json";
48 type Output<'de> = GetUnreadCountOutput<'de>;
49 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
50}
51
52impl jacquard_common::xrpc::XrpcRequest for GetUnreadCount {
53 const NSID: &'static str = "app.bsky.notification.getUnreadCount";
54 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
55 type Response = GetUnreadCountResponse;
56}
57
58///Endpoint type for
59///app.bsky.notification.getUnreadCount
60pub struct GetUnreadCountRequest;
61impl jacquard_common::xrpc::XrpcEndpoint for GetUnreadCountRequest {
62 const PATH: &'static str = "/xrpc/app.bsky.notification.getUnreadCount";
63 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
64 type Request<'de> = GetUnreadCount;
65 type Response = GetUnreadCountResponse;
66}