Skip to content

Commit 7c02a63

Browse files
committed
Cxx access to subscriptionIds on Events
1 parent 66ec04c commit 7c02a63

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

Sources/PrivMXEndpointSwiftNative/include/PrivMXUtils.hpp

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,112 @@ static ResultWithError<std::nullptr_t> _call_Utils_rtrim(std::string& data) noex
612612
return res;
613613
}
614614

615+
static privmx::SubscriptionIdVector _get_subIds_from_event(const privmx::endpoint::core::Event& event){
616+
auto res = event.subscriptions;
617+
return res;
618+
}
619+
620+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::thread::ThreadCreatedEvent& event){
621+
return _get_subIds_from_event(event);
622+
}
623+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::thread::ThreadUpdatedEvent& event){
624+
return _get_subIds_from_event(event);
625+
}
626+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::thread::ThreadStatsChangedEvent& event){
627+
return _get_subIds_from_event(event);
628+
}
629+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::thread::ThreadDeletedEvent& event){
630+
return _get_subIds_from_event(event);
631+
}
632+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::thread::ThreadNewMessageEvent& event){
633+
return _get_subIds_from_event(event);
634+
}
635+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::thread::ThreadMessageUpdatedEvent& event){
636+
return _get_subIds_from_event(event);
637+
}
638+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::thread::ThreadMessageDeletedEvent& event){
639+
return _get_subIds_from_event(event);
640+
}
641+
642+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::store::StoreCreatedEvent& event){
643+
return _get_subIds_from_event(event);
644+
}
645+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::store::StoreUpdatedEvent& event){
646+
return _get_subIds_from_event(event);
647+
}
648+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::store::StoreStatsChangedEvent& event){
649+
return _get_subIds_from_event(event);
650+
}
651+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::store::StoreDeletedEvent& event){
652+
return _get_subIds_from_event(event);
653+
}
654+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::store::StoreFileCreatedEvent& event){
655+
return _get_subIds_from_event(event);
656+
}
657+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::store::StoreFileUpdatedEvent& event){
658+
return _get_subIds_from_event(event);
659+
}
660+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::store::StoreFileDeletedEvent& event){
661+
return _get_subIds_from_event(event);
662+
}
663+
664+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::inbox::InboxCreatedEvent& event){
665+
return _get_subIds_from_event(event);
666+
}
667+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::inbox::InboxUpdatedEvent& event){
668+
return _get_subIds_from_event(event);
669+
}
670+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::inbox::InboxDeletedEvent& event){
671+
return _get_subIds_from_event(event);
672+
}
673+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::inbox::InboxEntryCreatedEvent& event){
674+
return _get_subIds_from_event(event);
675+
}
676+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::inbox::InboxEntryDeletedEvent& event){
677+
return _get_subIds_from_event(event);
678+
}
679+
680+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::kvdb::KvdbCreatedEvent& event){
681+
return _get_subIds_from_event(event);
682+
}
683+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::kvdb::KvdbUpdatedEvent& event){
684+
return _get_subIds_from_event(event);
685+
}
686+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::kvdb::KvdbStatsChangedEvent& event){
687+
return _get_subIds_from_event(event);
688+
}
689+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::kvdb::KvdbDeletedEvent& event){
690+
return _get_subIds_from_event(event);
691+
}
692+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::kvdb::KvdbNewEntryEvent& event){
693+
return _get_subIds_from_event(event);
694+
}
695+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::kvdb::KvdbEntryUpdatedEvent& event){
696+
return _get_subIds_from_event(event);
697+
}
698+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::kvdb::KvdbEntryDeletedEvent& event){
699+
return _get_subIds_from_event(event);
700+
}
701+
702+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::event::ContextCustomEvent& event){
703+
return _get_subIds_from_event(event);
704+
}
705+
706+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::core::LibBreakEvent& event){
707+
return _get_subIds_from_event(event);
708+
}
709+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::core::LibPlatformDisconnectedEvent& event){
710+
return _get_subIds_from_event(event);
711+
}
712+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::core::LibDisconnectedEvent& event){
713+
return _get_subIds_from_event(event);
714+
}
715+
static privmx::SubscriptionIdVector _get_subIds_from(const privmx::endpoint::core::LibConnectedEvent& event){
716+
return _get_subIds_from_event(event);
717+
}
718+
719+
720+
615721
}
616722
}
617723

0 commit comments

Comments
 (0)