mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-15 09:55:56 -04:00
Add notifications listener
This commit is contained in:
parent
8332964ac5
commit
800b309a4b
6 changed files with 209 additions and 3 deletions
|
@ -40,6 +40,33 @@ message RegisterDisputeAgentRequest {
|
|||
message RegisterDisputeAgentReply {
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Notifications
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
service Notifications {
|
||||
rpc RegisterNotificationListener (RegisterNotificationListenerRequest) returns (stream NotificationMessage) {
|
||||
}
|
||||
rpc SendNotification (SendNotificationRequest) returns (SendNotificationReply) { // only used for testing
|
||||
}
|
||||
}
|
||||
|
||||
message RegisterNotificationListenerRequest {
|
||||
}
|
||||
|
||||
message NotificationMessage {
|
||||
int64 timestamp = 1;
|
||||
string title = 2;
|
||||
string message = 3;
|
||||
}
|
||||
|
||||
message SendNotificationRequest {
|
||||
NotificationMessage notification = 1;
|
||||
}
|
||||
|
||||
message SendNotificationReply {
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Help
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue