- Handled session expired globally - Added Deactiovate account api, handled the logic. - Handled the deactivate account on login. - Made a view to handle privacy policy and terms and condition url, also it will handle the rich text file. - Completed terms and condition, Privacy policy, disclaimer - Fixed the issue of live TV going to Streaming Screen. Landscape and potrait handled
37 lines
615 B
Swift
37 lines
615 B
Swift
//
|
|
// BaseResponseModel.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 06/05/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
// MARK: - BaseResponseModel
|
|
protocol ResponseProtocol {
|
|
var success: Int? { get }
|
|
}
|
|
|
|
class BaseResponseModel<T: Codable> : Codable, ResponseProtocol{
|
|
let success: Int?
|
|
let message: String?
|
|
let data: T?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case success
|
|
case message
|
|
case data
|
|
}
|
|
}
|
|
|
|
|
|
struct CommonResponseModel : Codable {
|
|
let success: Int?
|
|
let message: String?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case success
|
|
case message
|
|
}
|
|
}
|