-
Notifications
You must be signed in to change notification settings - Fork 0
Utils
rarrouba edited this page Jul 27, 2017
·
5 revisions
The Utils class was an existing part of the android project. This class contains various methods that are used throughout the project.
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.
This static method is used in the RatingTransmitter
, the ServerStorage
, the RouteProvider
, the GuiController
and the PreRunningFragment
class.