//
//  AdTypes.swift
//  sdk-demo-ios
//
//  Created by Smaato Inc on 10.07.18.
//  Copyright © 2018 Smaato Inc. All rights reserved.
//

import UIKit

enum AdType: Int, CaseIterable {
    case Banner, Interstitial, Rewarded
    
    var identifier: String {
        switch self {
        case .Banner:
            return "Banner"
        case .Interstitial:
            return "Interstitial"
        case .Rewarded:
            return "Rewarded"
        }
    }
}

enum NetworkType: Int, CaseIterable {
    case MoPub, AdMob
    
    var identifier: String {
        switch self {
        case .MoPub:
            return "MoPub"
        case .AdMob:
            return "Google Mobile Ads"
        }
    }
}

enum OtherContent: Int, CaseIterable {
    case Settings, GDPR
    
    var identifier: String {
        switch self {
        case .Settings:
            return "Settings"
        case .GDPR:
            return "GDPR Consent Dialogue"
        }
    }
}

enum Sections: Int {
    case HeaderBidding, Mediation, Primary, Other
    
    func headerTitle() -> String {
        switch self {
        case .HeaderBidding:
            return "Header Bidding"
        case .Mediation:
            return "Mediation"
        case .Primary:
            return "Primary"
        case .Other:
            return "Other"
        }
    }
    
    var identifier: String {
        switch self {
        case .HeaderBidding:
            return "HeaderBidding"
        case .Mediation:
            return "Mediation"
        case .Primary:
            return "AdTypes"
        case .Other:
            return "Other"
        }
    }
}

struct Segues {
    static let showNewPrimaryAdSegue = "showNewPrimaryAdSegue"
    static let showNewMediationAdSegue = "showNewMediationAdSegue"
    static let showNewHbMediationAdSegue = "showNewHbMediationAdSegue"
}
