import Foundation

let countryList = [
    [ "Argentina" : "ar"],
    [ "Austria" : "at"],
    [ "Australia" : "au"],
    [ "Belgium" : "be" ],
    [ "Brazil" : "br" ],
    [ "Canada" : "ca"],
    [ "Colombia" : "co"],
    [ "Egypt": "eg"],
    [ "France" : "fr"],
    [ "Great Britain" : "gb"],
    [ "Greece" : "gr"],
    [ "Hong Kong" : "hk"],
    [ "Hungary" : "hu"],
    [ "Indonesia" : "id"],
    [ "India" : "in"],
    [ "Italy" : "it"],
    [ "Japan" : "jp"],
    [ "Korea" :  "kr"],
    [ "Malaysia" : "my"],
    [ "Nigeria" : "ng"],
    [ "Nepal" : "nl"],
    [ "Norway" : "no"],
    [ "New Zealand" : "nz"],
    [ "Phillipines" : "ph"],
    [ "Poland" : "pl"],
    [ "Portugal" : "pt"],
    [ "Romania" : "ro"],
    [ "Russia" : "ru"],
    [ "Singapore" : "sg"],
    [ "Slovakia" : "sk"],
    [ "Thailand" : "th"],
    [ "Taiwan" : "tw"],
    [ "Turkey" : "tr"],
    [ "USA" : "us"]
]

public enum newCategory: String {
    case TopHeadlines = ""
    case Business = "business"
    case Technology = "technology"
    case Sports = "sports"
}

let baseUrl = "https://newsapi.org/v2/top-headlines?country="
var defaultCountry = "us"
var cat = ""
var category = "&category="
let apiKey = "&apiKey=32e6468c44d84dceb0afb8444f26f68b"
var newsApiUrl = baseUrl + defaultCountry + category + apiKey

let cellIdentifier = "cell"
let KINGFISHER_CACHE_EXPIRY_TIME: TimeInterval = 60 * 5
