|
Nostrduino
|
#include <NostrEvent.h>
Public Member Functions | |
| NostrEventTags () | |
| unsigned int | count () |
| const std::vector< NostrEventTag > & | getTags () const |
| const std::vector< NostrString > & | getTag (NostrString key) const |
| unsigned int | addTag (NostrString key, std::initializer_list< NostrString > values) |
| unsigned int | addTag (NostrString key, std::vector< NostrString > values) |
| bool | removeTag (size_t index) |
| void | removeTags (NostrString key) |
| void | clearTags () |
| void | toJson (JsonArray doc) const |
Static Public Attributes | |
| static const std::vector< NostrString > | emptyTags |
Protected Attributes | |
| std::vector< NostrEventTag > | tags |
|
inline |
| unsigned int NostrEventTags::addTag | ( | NostrString | key, |
| std::initializer_list< NostrString > | values | ||
| ) |
Add a tag with a given key and set of values NB. You can add multiple tags with the same key
| unsigned int NostrEventTags::addTag | ( | NostrString | key, |
| std::vector< NostrString > | values | ||
| ) |
Add a tag with a given key and set of values NB. You can add multiple tags with the same key
| void NostrEventTags::clearTags | ( | ) |
Remove all tags
| const std::vector< NostrString > & NostrEventTags::getTag | ( | NostrString | key | ) | const |
Get the first occurrence of a tag with the given key
| const std::vector< NostrEventTag > & NostrEventTags::getTags | ( | ) | const |
Get all tags
| void NostrEventTags::removeTags | ( | NostrString | key | ) |
Remove all occurrences of a tag with the given key
|
static |
|
protected |