Created
October 16, 2019 07:01
-
-
Save oxlb/a474595a95c1986c431992cfae0d2470 to your computer and use it in GitHub Desktop.
adType for the type of ads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum adType: Int { | |
case banner | |
case interstitial | |
func getName() -> String { | |
switch self { | |
case .banner: | |
return adEvent.getName(.viewAdBanner)() | |
case .interstitial: | |
return adEvent.getName(.viewAdInt)() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment