Radix Relay
Hybrid mesh communications with Signal Protocol encryption
Loading...
Searching...
No Matches
radix_relay::nostr::events::outgoing::subscription_request Struct Reference

Nostr subscription request. More...

#include <events.hpp>

Public Member Functions

 subscription_request (std::string sub_json)
 
auto get_subscription_id () const -> std::string
 Extracts the subscription ID from the JSON.
 

Public Attributes

std::string subscription_json
 JSON-formatted subscription filter.
 

Detailed Description

Nostr subscription request.

Definition at line 106 of file events.hpp.

Constructor & Destructor Documentation

◆ subscription_request()

radix_relay::nostr::events::outgoing::subscription_request::subscription_request ( std::string  sub_json)
inlineexplicit

Definition at line 110 of file events.hpp.

Member Function Documentation

◆ get_subscription_id()

auto radix_relay::nostr::events::outgoing::subscription_request::get_subscription_id ( ) const -> std::string

Extracts the subscription ID from the JSON.

Returns
Subscription ID string

Member Data Documentation

◆ subscription_json

std::string radix_relay::nostr::events::outgoing::subscription_request::subscription_json

JSON-formatted subscription filter.

Definition at line 108 of file events.hpp.


The documentation for this struct was generated from the following file: