public RemoteInterface(Context context) { prefHelper_ = PrefHelper.getInstance(context); }
/** * Creates an instance of ServerRequest. * * @param context Application context. * @param requestPath Path to server for this request. */ public ServerRequest(Context context, String requestPath) { requestPath_ = requestPath; prefHelper_ = PrefHelper.getInstance(context); }
/** * Creates an instance of ServerRequest. * * @param requestPath Path to server for this request. * @param post A {@link JSONObject} containing the post data supplied with the current request as * key-value pairs. * @param context Application context. */ protected ServerRequest(String requestPath, JSONObject post, Context context) { requestPath_ = requestPath; post_ = post; prefHelper_ = PrefHelper.getInstance(context); }
/** * Creates an instance of ServerRequest. * * @param context Application context. * @param requestPath Path to server for this request. */ public ServerRequest(Context context, String requestPath) { requestPath_ = requestPath; prefHelper_ = PrefHelper.getInstance(context); params_ = new JSONObject(); }