Files
Woka_Native_iOS/WOKA/Network Adapter/BaseResponseModel.swift
Bilal d6540e9f2e - Made login ID PAss dynamic with config in the network claass singleton
- 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
2024-06-07 21:04:29 +05:30

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
}
}