[Add] Notification handling

This commit is contained in:
Alex-Emmet 2026-02-08 20:13:50 +01:00
commit 17c4dadbd2
3 changed files with 9 additions and 0 deletions

6
src/data/communication.rs Normal file → Executable file
View file

@ -35,6 +35,7 @@ pub enum DataTypes {
denied_profiles,
content,
messages,
notifications,
send_time,
get_time,
get_variant,
@ -142,6 +143,11 @@ pub enum CommunicationType {
message_other_iota,
message_chunk,
messages_get,
push_notification,
read_notification,
get_notifications,
change_confirm,
confirm_receive,
confirm_read,

View file

@ -361,6 +361,8 @@ impl ClientConnection {
}
if cv.is_type(CommunicationType::change_user_data)
|| cv.is_type(CommunicationType::read_notification)
|| cv.is_type(CommunicationType::get_notifications)
|| cv.is_type(CommunicationType::get_user_data)
|| cv.is_type(CommunicationType::get_iota_data)
|| cv.is_type(CommunicationType::delete_user)

View file

@ -434,6 +434,7 @@ impl IotaConnection {
}
if cv.is_type(CommunicationType::change_iota_data)
|| cv.is_type(CommunicationType::push_notification)
|| cv.is_type(CommunicationType::get_user_data)
|| cv.is_type(CommunicationType::get_iota_data)
|| cv.is_type(CommunicationType::get_register)