From e24b0bd2eede4283377cdfabd38a337610cb17b8 Mon Sep 17 00:00:00 2001 From: Turid Cecilie Dahl <turidcd@stud.ntnu.no> Date: Sat, 18 Apr 2020 13:29:11 +0200 Subject: [PATCH] Makes QI more of a static class --- frontend/core/src/com/gameware/game/QueryIntermediate.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/core/src/com/gameware/game/QueryIntermediate.java b/frontend/core/src/com/gameware/game/QueryIntermediate.java index 73b50ca..9791163 100644 --- a/frontend/core/src/com/gameware/game/QueryIntermediate.java +++ b/frontend/core/src/com/gameware/game/QueryIntermediate.java @@ -31,13 +31,15 @@ import java.util.Map; import java.util.NoSuchElementException; import java.util.TimeZone; -public class QueryIntermediate { +public final class QueryIntermediate { /* QueryIntermediate works as connector between frontend and backend. It takes care of all communications and requests with backend. */ + private QueryIntermediate(){} + private static String baseUrl = GameWare.apiBaseUrl; private static Json json = new Json(); -- GitLab