It should be public static enum Type defined inside APIConnection class