microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/networkInspector/devices/iOSClienDevice.ts
23lines · modeblame
4bb0956eRedMickey5 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
| 3 | | |
| 4 | import { DeviceType } from "../../launchArgs"; | |
| 5 | import { ClientOS } from "../clientUtils"; | |
| 6 | import { BaseClientDevice } from "./baseClientDevice"; | |
| 7 | | |
| 8 | export class IOSClienDevice extends BaseClientDevice { | |
| 9 | private _state: string; | |
| 10 | | |
| 11 | constructor(id: string, deviceType: DeviceType, os: ClientOS, state: string, name?: string) { | |
| 12 | super(id, deviceType, os, name); | |
| 13 | this._state = state; | |
| 14 | } | |
| 15 | | |
| 16 | get state(): string { | |
| 17 | return this._state; | |
| 18 | } | |
| 19 | | |
| 20 | set state(state: string) { | |
| 21 | this._state = state; | |
| 22 | } | |
| 23 | } |