microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/networkInspector/devices/iOSClienDevice.ts
28lines · 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 { ClientOS } from "../clientUtils"; | |
| 5 | import { BaseClientDevice } from "./baseClientDevice"; | |
| 6 | | |
| 7 | export class IOSClienDevice extends BaseClientDevice { | |
4cd25962JiglioNero4 years ago | 8 | private _isOnline: boolean; |
4bb0956eRedMickey5 years ago | 9 | |
4cd25962JiglioNero4 years ago | 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; | |
4bb0956eRedMickey5 years ago | 19 | } |
| 20 | | |
4cd25962JiglioNero4 years ago | 21 | get isOnline(): boolean { |
| 22 | return this._isOnline; | |
4bb0956eRedMickey5 years ago | 23 | } |
| 24 | | |
4cd25962JiglioNero4 years ago | 25 | set isOnline(isOnline: boolean) { |
| 26 | this._isOnline = isOnline; | |
4bb0956eRedMickey5 years ago | 27 | } |
| 28 | } |