- added edit btn to full name - Linked the add child to the userregisteration details - Added Hindi Lingual file to profile view - Made the custom alert for deactivate account - updated the username check logic - Added logout api and handled the user logout - Handled the logout when device change globally
31 lines
500 B
Swift
31 lines
500 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 sad : String?
|
|
}
|