Files
Woka_Native_iOS/WOKA/Main/AuthFunc/AdsDM.swift
BilalKhanWDI 9f5bc313a1 - Implemented ADs with api for getting the app.
- Added impressions and click count on the given ads with id.
- - TC 62
- TC 64
- TC 65, 63
- TC 59 fixed
2024-09-04 20:17:33 +05:30

38 lines
825 B
Swift

//
// AdsDM.swift
// WOKA
//
// Created by MacBook Pro on 04/09/24.
//
import Foundation
// MARK: - AdsDM
struct AdsDM: 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 title, adCompany: String?
let bannerImage, buttonImage: String?
let forPage: String?
let adLink: String?
enum CodingKeys: String, CodingKey {
case id, title
case adCompany = "ad_company"
case bannerImage = "banner_image"
case buttonImage = "button_image"
case forPage = "for_page"
case adLink = "ad_link"
}
}
}