Skip to content

Instantly share code, notes, and snippets.

package com.neox.web.model.hiscores;
import com.google.gson.annotations.Expose;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters;
import com.mongodb.client.model.Projections;
import com.neox.web.Neox;
import com.neox.web.model.Session;
import com.neox.web.model.WrappedPage;
import com.neox.web.model.user.NeoxUser;
package com.neox.web.model.game.requests;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters;
import com.mongodb.client.model.Projections;
import com.mongodb.client.model.Sorts;
import com.neox.web.Neox;
import com.neox.web.model.game.GameRequest;
import com.neox.web.pojo.VoteDoc;
import io.archon.webserver.network.HttpAsyncRequest;
package com.neox.web.model.voting;
import io.archon.misc.utils.EnumUtils;
import io.archon.webserver.network.HttpAsyncRequest;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import java.util.Map;
import java.util.function.Function;
class HiscoresCol {
name;
rowConsumer;
constructor(name, rowConsumer) {
this.name = name;
this.rowConsumer = rowConsumer;
}
}
class Hiscores {
page;
layout title permalink
post
Our Very First Update!
/updates/elxa-test

Neox Developer Blog - 05/05/23

"Onec at posuere tortor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris urna risus, hendrerit non tristique eget, tincidunt sit amet quam. Duis dapibus mi quis augue mattis cursus. Sed varius, orci quis malesuada egestas, leo purus aliquet ligula, vitae maximus ipsum est vitae nisl. Suspendisse sagittis feugiat fringilla. Maecenas dictum orci at augue pretium ullamcorper. Mauris dolor magna, porttitor eu ullamcorper sollicitudin, imperdiet et odio. Aliquam erat volutpat. Nam non tincidunt arcu. Etiam feugiat ornare ante non semper. Fusce felis quam, faucibus a varius et, pharetra at justo. Ut ullamcorper, diam ac pharetra accumsan, eros libero consequat neque, ac pulvinar metus est vel lorem. Vestibulum sit amet augue ligula. Donec id sapien est.

package com.neox.web.model.voting;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.annotations.Expose;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters;
import com.mongodb.client.model.Projections;
import com.mongodb.client.model.Sorts;
import com.neox.web.Neox;
package com.neox.web.pages.wrapped.hiscores;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters;
import com.neox.web.Neox;
import com.neox.web.pojo.HiscoresDoc;
import io.archon.misc.StartupScript;
import io.archon.misc.utils.TimeUtils;
import org.bson.types.ObjectId;
package com.neox.web.pages.wrapped.hiscores;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters;
import com.neox.web.Neox;
import com.neox.web.pojo.HiscoresDoc;
import io.archon.misc.StartupScript;
import io.archon.misc.utils.TimeUtils;
import org.bson.types.ObjectId;
package com.neox.web.model.game.requests;
import com.mongodb.MongoException;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.*;
import com.neox.web.Neox;
import com.neox.web.model.game.GameRequest;
import com.neox.web.pojo.HiscoresDoc;
import io.archon.misc.utils.ThreadUtils;
import io.archon.misc.utils.TimeUtils;
package com.neox.web.model.voting.callbacks;
import com.neox.web.model.voting.VotingCallback;
import java.util.Map;
public class TopG extends VotingCallback {
private static final String SITE_ID = ""; // todo