コード例 #1
0
 public RemoteInterface(Context context) {
   prefHelper_ = PrefHelper.getInstance(context);
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
 /**
  * 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);
 }
コード例 #4
0
 /**
  * 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();
 }