質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,4 +58,54 @@
|
|
58
58
|
|
59
59
|
}
|
60
60
|
|
61
|
+
|
62
|
+
|
63
|
+
class AppViewModel: BaseViewModel {
|
64
|
+
|
65
|
+
var isLogin: Observable<Bool>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
/// Parameter service object
|
70
|
+
|
71
|
+
private let parameterService = RepositoryServiceInjection.container.resolve(ParameterContainerProtocol.self)
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
init(viewController: UIViewController) {
|
76
|
+
|
77
|
+
isLogin = Observable.of((ParameterService.instance.getParameterBy(type: BusinessParameter.clientServerLogin) as? Bool)!)
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
super.init()
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
self.viewController = viewController
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
// Logout Error発生時のダイアログでのAction設定
|
90
|
+
|
91
|
+
okButtonAction = {
|
92
|
+
|
93
|
+
let appViewController = (viewController as? AppViewController)!
|
94
|
+
|
95
|
+
appViewController.activityIndicator.stopAnimating()
|
96
|
+
|
97
|
+
appViewController.maskView.isHidden = true
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
|
61
111
|
```
|