Options
All
  • Public
  • Public/Protected
  • All
Menu

Device Class

Hierarchy

  • Device

Index

Constructors

constructor

  • new Device(model: string, sn: string, os: string, nickname: string, lastSeen?: undefined | number): Device
  • Create a new Device

    Parameters

    • model: string
    • sn: string
    • os: string
    • nickname: string
    • Optional lastSeen: undefined | number

    Returns Device

Properties

lastSeen

lastSeen: number = Date.now()

Date in millis from the epoch that we were last seen

model

model: string = ""

Model name

nickname

nickname: string = ""

Nickname

os

os: string = ""

Operating system

sn

sn: string = ""

Serial number (or other descriptor)

Accessors

Static MODEL

  • get MODEL(): string

Static NICKNAME

  • get NICKNAME(): string

Static OS

  • get OS(): string

Static SN

  • get SN(): string

Methods

getName

  • getName(): string

getUniqueName

  • getUniqueName(): string

isMe

  • isMe(): boolean

Static myModel

  • myModel(): string

Static myName

  • myName(): string

Static myNickname

  • myNickname(): string

Static myOS

  • myOS(): string

Static mySN

  • mySN(): string

Static myUniqueName

  • myUniqueName(): string

Generated using TypeDoc