package com.mediamath.terminalone.models;

import java.util.Arrays;

public class EventPixel {

	public enum EventPixelsEnum {

		ImpSkippable("imp:skippable"), Complete("complete"), CreativeClick("creative:click"), FullScreen(
				"fullscreen"), FirstQuartile("firstQuartile"), CreativeError("creative:err"), Rewind(
						"rewind"), MidPoint("midpoint"), Start("start"), CreativeImp("creative:imp"), CreativeView(
								"creativeView"), Expand("expand"), Close("close"), Collapse(
										"collapse"), AcceptInvitation("acceptInvitation"), Mute("mute"), ThirdQuartile(
												"thirdQuartile"), Unmute("unmute"), Resume("resume"), Pause(
														"pause"), Skip("skip"), EngagedView("engagedView");

		String val;

		EventPixelsEnum(String pVal) {
			val = pVal;
		}

		public String toString() {
			return this.val;
		}

	}

	public EventPixel(String typ, String url) {
		super();
		this.typ = typ;
		this.url = url;
	}

	private String typ;
	private String url;

	public String getTyp() {
		return typ;
	}

	public void setTyp(String typ) {
		if (Arrays.toString(EventPixelsEnum.values()).contains(typ)) {
			this.typ = typ;
		}
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}

@@ -92,16 +92,63 @@
 Pixel %7B%0D
+%0A%09%0D%0A%09private String typ;%0D%0A%09private String url;%0D
 %0A%0D%0A%09publ
@@ -1015,54 +1015,8 @@
 %0D%0A%0D%0A
-%09private String typ;%0D%0A%09private String url;%0D%0A%0D%0A
 %09pub

Update EventPixel.java