ReservationVoucherData class

A reservation voucher for circuit relay.

Constructors

ReservationVoucherData.new({required PeerId relay, required PeerId peer, required DateTime expiration})
Creates a new reservation voucher.

Properties

expiration DateTime
The expiration time of the reservation (Unix timestamp).
final
hashCode int
The hash code for this object.
no setterinherited
peer PeerId
The ID of the peer receiving relay service through the relay.
final
relay PeerId
The ID of the peer providing relay service.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

codec() List<int>
domain() String
marshalRecord() Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toProto() ReservationVoucher
Converts this voucher to a protocol buffer message.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromProto(ReservationVoucher pb) ReservationVoucherData
Creates a ReservationVoucherData from a protocol buffer message.