- My list Audio books on add remove fav, only calling audiobooks api and reloading in background

- My list Games on add remove fav, only calling Games api and reloading in background
- My list Karaoke on add remove fav, only calling Karaoke api and reloading in background
-Finalised clicks count for every module
This commit is contained in:
2024-08-12 19:58:58 +05:30
parent 3eccad3149
commit d17fe416ae
69 changed files with 708 additions and 137 deletions

View File

@@ -69,6 +69,7 @@ class ThemeTwoVC: UIViewController {
}
@IBAction func playTrailer(_ sender: LocalisedElementsButton) {
PersistentStorage.shared.addOthersCount()
let item = JwPlayerItemCreate(url: APIEndPoints.StaticURLs.masilaUrl, poster: nil, titles: "Masila")
JWPlayerManager.shared.presentPlayer(from: self, playerItems: [item], contentType: .trailer)
}
@@ -90,18 +91,25 @@ extension ThemeTwoVC : CollectionViewSRC{
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
switch indexPath.row{
case 0:
PersistentStorage.shared.addRadioCount()
vm.checkType(action: .radio)
case 1:
PersistentStorage.shared.addOthersCount()
vm.checkType(action: .liveTV)
case 2:
PersistentStorage.shared.addOthersCount()
vm.checkType(action: .webseries)
case 3:
PersistentStorage.shared.addOthersCount()
vm.checkType(action: .games)
case 4:
PersistentStorage.shared.addOthersCount()
vm.checkType(action: .audioBooks)
case 5:
PersistentStorage.shared.addOthersCount()
vm.checkType(action: .karaoke)
case 6:
PersistentStorage.shared.addOthersCount()
vm.checkType(action: .shop)
default:
break