Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Device

Device contains information about a particular device.

export
class

Device

Hierarchy

  • Device

Index

Properties

Methods

Properties

id

id: string

The device's identifier.

keys

keys: Map<number, NodeRSA>

The device's keys.

name

name: string

The device's friendly name.

Methods

equals

  • Compares two devices for equality.

    memberof

    Device

    Parameters

    • b: Device

      The device to compare against.

    Returns boolean

serialize

  • serialize(): Buffer
  • Serializes this device to a buffer.

    memberof

    Device

    Returns Buffer

Static deserialize

  • deserialize(data: Buffer): Device
  • Deserializes the given buffer to a Device.

    static
    memberof

    Device

    Parameters

    • data: Buffer

      The buffer to deserialize.

    Returns Device

Generated using TypeDoc