Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 2.86 KB

getdevicesresponse.md

File metadata and controls

38 lines (33 loc) · 2.86 KB

GetDevicesResponse

Example Usage

import { GetDevicesResponse } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetDevicesResponse = {
  contentType: "<value>",
  statusCode: 308,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  object: {
    mediaContainer: {
      size: 151,
      identifier: "com.plexapp.system.devices",
      device: [
        {
          id: 1,
          name: "iPhone",
          platform: "iOS",
          createdAt: 1654131230,
        },
      ],
    },
  },
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
object operations.GetDevicesResponseBody Devices