mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
13 KiB
13 KiB
PlexDevice
Example Usage
import { PlexDevice, Protocol } from "@lukehagar/plexjs/sdk/models/operations";
let value: PlexDevice = {
name: "<value>",
product: "Incredible Steel Chair",
productVersion: "<value>",
platform: "<value>",
platformVersion: "<value>",
device: "Mobile",
clientIdentifier: "<value>",
createdAt: new Date("2019-06-24T11:38:02Z"),
lastSeenAt: new Date("2019-06-24T11:38:02Z"),
provides: "<value>",
ownerId: 341028,
sourceTitle: "<value>",
publicAddress: "<value>",
accessToken: "<value>",
owned: false,
home: false,
synced: false,
relay: false,
presence: false,
httpsRequired: false,
publicAddressMatches: false,
dnsRebindingProtection: false,
natLoopbackSupported: false,
connections: [
{
protocol: Protocol.Http,
address: "40779 Shields Turnpike",
port: 44844,
uri: "https://artistic-creator.org",
local: false,
relay: false,
iPv6: false,
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
name |
string | ✔️ | N/A | |
product |
string | ✔️ | N/A | |
productVersion |
string | ✔️ | N/A | |
platform |
string | ✔️ | N/A | |
platformVersion |
string | ✔️ | N/A | |
device |
string | ✔️ | N/A | |
clientIdentifier |
string | ✔️ | N/A | |
createdAt |
Date | ✔️ | N/A | 2019-06-24T11:38:02Z |
lastSeenAt |
Date | ✔️ | N/A | 2019-06-24T11:38:02Z |
provides |
string | ✔️ | N/A | |
ownerId |
number | ✔️ | ownerId is null when the device is owned by the token used to send the request | |
sourceTitle |
string | ✔️ | N/A | |
publicAddress |
string | ✔️ | N/A | |
accessToken |
string | ✔️ | N/A | |
owned |
boolean | ✔️ | N/A | |
home |
boolean | ✔️ | N/A | |
synced |
boolean | ✔️ | N/A | |
relay |
boolean | ✔️ | N/A | |
presence |
boolean | ✔️ | N/A | |
httpsRequired |
boolean | ✔️ | N/A | |
publicAddressMatches |
boolean | ✔️ | N/A | |
dnsRebindingProtection |
boolean | ✔️ | N/A | |
natLoopbackSupported |
boolean | ✔️ | N/A | |
connections |
operations.Connections[] | ✔️ | N/A |