Skip to content
rarrouba edited this page Jul 27, 2017 · 5 revisions

Description

The Utils class was an existing part of the android project. This class contains various methods that are used throughout the project.

Changes

We added a method PostRequest() to handle make a generic way of communicating our server. This method has two strings as parameters, one is the url and one is the body of the request. The method returns a JSONObject. If the connection failed this JSONObject will be null.

Uses

This static method is used in the RatingTransmitter, the ServerStorage, the RouteProvider, the GuiController and the PreRunningFragment class.

Clone this wiki locally