Back to project page tapad-android-sdk.
The source code is released under:
MIT License
If you think the Android project tapad-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tapad.adserving; /*from www . j av a2 s .co m*/ /** * Encapsulates the dimensions of the ad and definitions of the standard ad unit sizes. * * Please check with Tapad if you want to use ad sizes other than the ones defined * statically in this class. */ public class AdSize { public static final AdSize S320x50 = new AdSize(320, 50); public static final AdSize S300x50 = new AdSize(300, 50); public static final AdSize S300x250 = new AdSize(300, 250); private int width; private int height; public AdSize(int width, int height) { this.width = width; this.height = height; } public int getWidth() { return this.width; } public int getHeight() { return this.height; } @Override public String toString() { return asString(); } public String asString() { return getWidth() + "x" + getHeight(); } }