microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
src/extension/networkInspector/devices/iOSClienDevice.ts
28lines · modecode
| 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 { ClientOS } from "../clientUtils"; |
| 5 | import { BaseClientDevice } from "./baseClientDevice"; |
| 6 | |
| 7 | export class IOSClienDevice extends BaseClientDevice { |
| 8 | private _isOnline: boolean; |
| 9 | |
| 10 | constructor( |
| 11 | id: string, |
| 12 | isVirtualTarget: boolean, |
| 13 | os: ClientOS, |
| 14 | isOnline: boolean, |
| 15 | name?: string, |
| 16 | ) { |
| 17 | super(id, isVirtualTarget, os, name); |
| 18 | this._isOnline = isOnline; |
| 19 | } |
| 20 | |
| 21 | get isOnline(): boolean { |
| 22 | return this._isOnline; |
| 23 | } |
| 24 | |
| 25 | set isOnline(isOnline: boolean) { |
| 26 | this._isOnline = isOnline; |
| 27 | } |
| 28 | } |
| 29 | |