File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ pub enum RelayMessage {
26
26
subscription_id : String ,
27
27
count : u64 ,
28
28
} ,
29
+ NegMsg {
30
+ subscription_id : String ,
31
+ message : String ,
32
+ } ,
33
+ NegErr {
34
+ subscription_id : String ,
35
+ code : String ,
36
+ } ,
29
37
}
30
38
31
39
impl From < NRelayMessage > for RelayMessage {
@@ -59,6 +67,20 @@ impl From<NRelayMessage> for RelayMessage {
59
67
subscription_id : subscription_id. to_string ( ) ,
60
68
count : count as u64 ,
61
69
} ,
70
+ NRelayMessage :: NegMsg {
71
+ subscription_id,
72
+ message,
73
+ } => Self :: NegMsg {
74
+ subscription_id : subscription_id. to_string ( ) ,
75
+ message,
76
+ } ,
77
+ NRelayMessage :: NegErr {
78
+ subscription_id,
79
+ code,
80
+ } => Self :: NegErr {
81
+ subscription_id : subscription_id. to_string ( ) ,
82
+ code : code. to_string ( ) ,
83
+ } ,
62
84
}
63
85
}
64
86
}
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ interface RelayMessage {
136
136
Ok(string event_id, boolean status, string message);
137
137
Auth(string challenge);
138
138
Count(string subscription_id, u64 count);
139
+ NegMsg(string subscription_id, string message);
140
+ NegErr(string subscription_id, string code);
139
141
};
140
142
141
143
interface ZapRequestData {
Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ interface RelayMessage {
156
156
Ok(string event_id, boolean status, string message);
157
157
Auth(string challenge);
158
158
Count(string subscription_id, u64 count);
159
+ NegMsg(string subscription_id, string message);
160
+ NegErr(string subscription_id, string code);
159
161
};
160
162
161
163
interface ZapRequestData {
You can’t perform that action at this time.
0 commit comments