mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
Remove ControlsViewModel subclassing
This commit is contained in:
parent
3c9582b1c6
commit
d2900419ba
3 changed files with 3 additions and 11 deletions
|
|
@ -22,7 +22,7 @@ import Foundation
|
|||
import linphonesw
|
||||
|
||||
|
||||
class ChatConversationTableViewModel: ControlsViewModel {
|
||||
class ChatConversationTableViewModel {
|
||||
|
||||
static let sharedModel = ChatConversationTableViewModel()
|
||||
|
||||
|
|
@ -40,10 +40,6 @@ class ChatConversationTableViewModel: ControlsViewModel {
|
|||
var messageListSelected = MutableLiveData<[Bool]>([])
|
||||
|
||||
var messageListToDelete : [EventLog] = []
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
}
|
||||
|
||||
func getMessage(index: Int) -> EventLog? {
|
||||
if (chatRoom != nil) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import Foundation
|
|||
import linphonesw
|
||||
|
||||
|
||||
class ChatConversationViewModel: ControlsViewModel {
|
||||
class ChatConversationViewModel {
|
||||
|
||||
static let sharedModel = ChatConversationViewModel()
|
||||
|
||||
|
|
@ -77,10 +77,6 @@ class ChatConversationViewModel: ControlsViewModel {
|
|||
var shareFileURL = MutableLiveData<String>()
|
||||
var shareFileName = MutableLiveData<String>()
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
}
|
||||
|
||||
func resetViewModel(){
|
||||
chatRoom?.removeDelegate(delegate: chatRoomDelegate!)
|
||||
mediaURLCollection = []
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import Foundation
|
|||
import linphonesw
|
||||
|
||||
|
||||
class AudioPlayer: ControlsViewModel {
|
||||
class AudioPlayer {
|
||||
static let sharedModel = AudioPlayer()
|
||||
|
||||
static var linphonePlayer : Player? = nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue