Frontend  0.7.1
Loading...
Searching...
No Matches
Inheritance diagram for FakeZ21Service:
Collaboration diagram for FakeZ21Service:

Public Member Functions

 FakeZ21Service (this.ref)
override void call (Z21Command command)
void _lanXGetLocoInfo (LanXLocoInfo locoInfo)
void _lanXTurnoutInfo (LanXTurnoutInfo turnoutInfo)
Turnout _defaultTurnout (int accyAddress)

Public Attributes

final _controller = StreamController<Z21Command>()
final List< int > _cvs = List.from(fakeInitialLocoCvs)
final ProviderContainer ref
late final Stream< Z21Command_stream
int _centralState = 0x02
override int get closeCode => _controller.isClosed ? 1005 : null
override String get closeReason => closeCode != null ? 'Timeout' : null
override Future< void > get ready => Future.delayed(const Duration(seconds: 1))
override Stream< Z21Command > get stream => _stream
Public Attributes inherited from Z21Service
int get closeCode
String get closeReason
Future< void > get ready
Stream< Z21Command > get stream

Additional Inherited Members

Static Public Member Functions inherited from Z21Service
static Z21Command convert (Uint8List dataset)

Constructor & Destructor Documentation

◆ FakeZ21Service()

FakeZ21Service::FakeZ21Service ( this. ref)
inline

Member Function Documentation

◆ _defaultTurnout()

Turnout FakeZ21Service::_defaultTurnout ( int accyAddress)
inline

◆ _lanXGetLocoInfo()

void FakeZ21Service::_lanXGetLocoInfo ( LanXLocoInfo locoInfo)
inline

◆ _lanXTurnoutInfo()

void FakeZ21Service::_lanXTurnoutInfo ( LanXTurnoutInfo turnoutInfo)
inline

◆ call()

override void FakeZ21Service::call ( Z21Command command)
inline

Member Data Documentation

◆ _centralState

int FakeZ21Service::_centralState = 0x02

◆ _controller

final FakeZ21Service::_controller = StreamController<Z21Command>()

◆ _cvs

final List<int> FakeZ21Service::_cvs = List.from(fakeInitialLocoCvs)

◆ _stream

late final Stream<Z21Command> FakeZ21Service::_stream

◆ closeCode

override int get FakeZ21Service::closeCode => _controller.isClosed ? 1005 : null

◆ closeReason

override String get FakeZ21Service::closeReason => closeCode != null ? 'Timeout' : null

◆ ready

override Future<void> get FakeZ21Service::ready => Future.delayed(const Duration(seconds: 1))

◆ ref

final ProviderContainer FakeZ21Service::ref

◆ stream

override Stream<Z21Command> get FakeZ21Service::stream => _stream

The documentation for this class was generated from the following file: