dco_decode_my_notification method
Implementation
@protected
MyNotification dco_decode_my_notification(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
switch (raw[0]) {
case 0:
return MyNotification_Aria2(
gid: dco_decode_String(raw[1]),
event: dco_decode_my_event(raw[2]),
);
case 1:
return MyNotification_WebSocketConnected();
case 2:
return MyNotification_WebsocketClosed();
default:
throw Exception("unreachable");
}
}