[Add] Notification handling
This commit is contained in:
parent
7f7b8a5cdd
commit
17c4dadbd2
3 changed files with 9 additions and 0 deletions
6
src/data/communication.rs
Normal file → Executable file
6
src/data/communication.rs
Normal file → Executable file
|
|
@ -35,6 +35,7 @@ pub enum DataTypes {
|
||||||
denied_profiles,
|
denied_profiles,
|
||||||
content,
|
content,
|
||||||
messages,
|
messages,
|
||||||
|
notifications,
|
||||||
send_time,
|
send_time,
|
||||||
get_time,
|
get_time,
|
||||||
get_variant,
|
get_variant,
|
||||||
|
|
@ -142,6 +143,11 @@ pub enum CommunicationType {
|
||||||
message_other_iota,
|
message_other_iota,
|
||||||
message_chunk,
|
message_chunk,
|
||||||
messages_get,
|
messages_get,
|
||||||
|
|
||||||
|
push_notification,
|
||||||
|
read_notification,
|
||||||
|
get_notifications,
|
||||||
|
|
||||||
change_confirm,
|
change_confirm,
|
||||||
confirm_receive,
|
confirm_receive,
|
||||||
confirm_read,
|
confirm_read,
|
||||||
|
|
|
||||||
|
|
@ -361,6 +361,8 @@ impl ClientConnection {
|
||||||
}
|
}
|
||||||
|
|
||||||
if cv.is_type(CommunicationType::change_user_data)
|
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_user_data)
|
||||||
|| cv.is_type(CommunicationType::get_iota_data)
|
|| cv.is_type(CommunicationType::get_iota_data)
|
||||||
|| cv.is_type(CommunicationType::delete_user)
|
|| cv.is_type(CommunicationType::delete_user)
|
||||||
|
|
|
||||||
|
|
@ -434,6 +434,7 @@ impl IotaConnection {
|
||||||
}
|
}
|
||||||
|
|
||||||
if cv.is_type(CommunicationType::change_iota_data)
|
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_user_data)
|
||||||
|| cv.is_type(CommunicationType::get_iota_data)
|
|| cv.is_type(CommunicationType::get_iota_data)
|
||||||
|| cv.is_type(CommunicationType::get_register)
|
|| cv.is_type(CommunicationType::get_register)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue