#import "ContextAwareAdinCubeBannerDelegate.h"

#define BANNER_EVENT_PREFIX @"AIC-Banner-"

@implementation ContextAwareAdinCubeBannerDelegate

- (void)didLoadBanner {
	[self dispatchJavascriptEvent:BANNER_EVENT_PREFIX @"onAdLoaded"];
}

- (void)didFailOnBanner:(NSString*)errorCode {
	[self dispatchJavascriptEvent:BANNER_EVENT_PREFIX @"onError" content:errorCode];
}

- (void)didShowBanner {
	[self dispatchJavascriptEvent:BANNER_EVENT_PREFIX @"onAdShown"];
}

- (void)didClickOnBanner {
	[self dispatchJavascriptEvent:BANNER_EVENT_PREFIX @"onAdClicked"];
}

@end