|
| 1 | +// This file is automatically generated, so please do not edit it. |
| 2 | +// Generated by `flutter_rust_bridge`@ 2.0.0. |
| 3 | + |
| 4 | +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import |
| 5 | + |
| 6 | +import '../../frb_generated.dart'; |
| 7 | +import '../protocol/event.dart'; |
| 8 | +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; |
| 9 | +import 'package:freezed_annotation/freezed_annotation.dart' hide protected; |
| 10 | +part 'notification.freezed.dart'; |
| 11 | + |
| 12 | +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `from` |
| 13 | + |
| 14 | +@freezed |
| 15 | +sealed class RelayPoolNotification with _$RelayPoolNotification { |
| 16 | + const RelayPoolNotification._(); |
| 17 | + |
| 18 | + /// Received an [`Event`]. Does not include events sent by this client. |
| 19 | + const factory RelayPoolNotification.event({ |
| 20 | + /// Relay url |
| 21 | + required String relayUrl, |
| 22 | + |
| 23 | + /// Subscription ID |
| 24 | + required String subscriptionId, |
| 25 | + |
| 26 | + /// Event |
| 27 | + required Event event, |
| 28 | + }) = RelayPoolNotification_Event; |
| 29 | + |
| 30 | + /// Received a [`RelayMessage`]. Includes messages wrapping events that were sent by this client. |
| 31 | + const factory RelayPoolNotification.message({ |
| 32 | + /// Relay url |
| 33 | + required String relayUrl, |
| 34 | + |
| 35 | + /// Relay Message |
| 36 | + required String message, |
| 37 | + }) = RelayPoolNotification_Message; |
| 38 | + |
| 39 | + /// Shutdown |
| 40 | + /// |
| 41 | + /// This notification variant is sent after [`Client::shutdown`] method is called and all connections have been closed. |
| 42 | + const factory RelayPoolNotification.shutdown() = |
| 43 | + RelayPoolNotification_Shutdown; |
| 44 | +} |
0 commit comments