blob: 5ef1130b2a17ca39ae8fe35df01a2152275b820d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// RevokedDeviceViewModel.swift
// MullvadVPN
//
// Created by Jon Petersson on 2025-10-02.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import MullvadMockData
import SwiftUI
class RevokedDeviceViewModel: ObservableObject {
private var interactor: RevokedDeviceInteractorProtocol
var tunnelState: TunnelState
var onLogout: (() -> Void)?
init(interactor: RevokedDeviceInteractorProtocol) {
self.interactor = interactor
self.tunnelState = interactor.tunnelStatus.state
self.interactor.didUpdateTunnelStatus = { [weak self] status in
self?.tunnelState = status.state
}
}
}
|