RelayType class

Enum representing the type of relay.

Mixed in types

Constructors

RelayType.deserialize(CborIntValue cbor, {RelayType? validate})
Deserialize a RelayType from a CBOR integer value.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the relay type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The value representing the relay type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() List<int>
Serializes the object to CBOR bytes.
inherited
serializeHex() String
Serializes the object to hexadecimal string.
inherited
toCbor() → CborObject
Converts the object to a CBOR object.
override
toJson() String
Converts the object to a JSON representation.
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromName(String? name) RelayType
Get the RelayType instance corresponding to a given name.
fromValue(int? value) RelayType
Get the RelayType instance corresponding to a given value.

Constants

multiHostName → const RelayType
RelayType for multiple host names.
singleHostAddr → const RelayType
RelayType for a single host address.
singleHostName → const RelayType
RelayType for a single host name.
values → const List<RelayType>
List of all RelayType values.