Create all model classes

This commit is contained in:
Colin McDonald 2016-02-07 20:51:02 -05:00
parent f94fd33f5d
commit 83d43ef57f
15 changed files with 74 additions and 26 deletions

View File

@ -1,17 +1,15 @@
package net.frozenorb.apiv3; package net.frozenorb.apiv3;
import com.google.common.collect.ImmutableList;
import io.vertx.core.AbstractVerticle; import io.vertx.core.AbstractVerticle;
import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject; import io.vertx.core.json.JsonObject;
import io.vertx.ext.mongo.MongoClient; import io.vertx.ext.mongo.MongoClient;
import io.vertx.ext.web.Router; import io.vertx.ext.web.Router;
import lombok.Getter; import lombok.Getter;
import net.frozenorb.apiv3.types.Server; import net.frozenorb.apiv3.collections.Server;
import net.frozenorb.apiv3.types.ServerGroup;
import net.frozenorb.apiv3.utils.ErrorUtils; import net.frozenorb.apiv3.utils.ErrorUtils;
public class APIv3 extends AbstractVerticle { public final class APIv3 extends AbstractVerticle {
@Getter private static MongoClient mongoClient; @Getter private static MongoClient mongoClient;

View File

@ -2,7 +2,7 @@ package net.frozenorb.apiv3;
import io.vertx.core.Vertx; import io.vertx.core.Vertx;
public class Main { public final class Main {
public static void main(String[] args) { public static void main(String[] args) {
Vertx.vertx().deployVerticle(new APIv3()); Vertx.vertx().deployVerticle(new APIv3());

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class AuditLog {
public static final String COLLECTION_NAME = "auditLog";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class EmailTemplate {
public static final String COLLECTION_NAME = "emailTemplate";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class Grant {
public static final String COLLECTION_NAME = "grant";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class IPBan {
public static final String COLLECTION_NAME = "ipBan";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class IPLog {
public static final String COLLECTION_NAME = "ipLog";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class MaxMindCache {
public static final String COLLECTION_NAME = "maxMindCache";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class NotificationLog {
public static final String COLLECTION_NAME = "notificationLog";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class Punishment {
public static final String COLLECTION_NAME = "punishment";
}

View File

@ -1,7 +1,5 @@
package net.frozenorb.apiv3.types; package net.frozenorb.apiv3.collections;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import io.vertx.core.AsyncResult; import io.vertx.core.AsyncResult;
import io.vertx.core.Handler; import io.vertx.core.Handler;
import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonArray;

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class ServerGroup {
public static final String COLLECTION_NAME = "serverGroup";
}

View File

@ -0,0 +1,7 @@
package net.frozenorb.apiv3.collections;
public final class User {
public static final String COLLECTION_NAME = "user";
}

View File

@ -1,7 +0,0 @@
package net.frozenorb.apiv3.types;
public class Rank {
}

View File

@ -1,11 +0,0 @@
package net.frozenorb.apiv3.types;
import lombok.Getter;
public class ServerGroup {
@Getter private String id;
@Getter private ServerGroup[] inheritsFrom;
//@Getter private Map<>
}