2024-06-03 20:02:39 +05:30
|
|
|
//
|
|
|
|
|
// FaqListDM.swift
|
|
|
|
|
// WOKA
|
|
|
|
|
//
|
|
|
|
|
// Created by MacBook Pro on 03/06/24.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
|
|
// MARK: - Welcome
|
|
|
|
|
struct FaqListDM: Codable {
|
|
|
|
|
let result: [ResultData]?
|
|
|
|
|
let totalRecords: Int?
|
|
|
|
|
|
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
|
case result
|
|
|
|
|
case totalRecords = "total_records"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MARK: - Result
|
|
|
|
|
struct ResultData: Codable {
|
|
|
|
|
let id: Int?
|
|
|
|
|
let englishQuestion, englishAnswer, hindiQuestion, hindiAnswer: String?
|
|
|
|
|
let categoryMasterID: Int?
|
2024-06-04 20:01:51 +05:30
|
|
|
var isExpanded : Bool? = false
|
|
|
|
|
|
2024-06-03 20:02:39 +05:30
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
|
case id
|
|
|
|
|
case englishQuestion = "english_question"
|
|
|
|
|
case englishAnswer = "english_answer"
|
|
|
|
|
case hindiQuestion = "hindi_question"
|
|
|
|
|
case hindiAnswer = "hindi_answer"
|
|
|
|
|
case categoryMasterID = "category_master_id"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|