Commit 21ea941d authored by Nastuzzi Samy's avatar Nastuzzi Samy
Browse files

Optimization

parent efb94054
......@@ -28,6 +28,10 @@ import fr.utc.simde.jessy.tools.Ginger;
import fr.utc.simde.jessy.tools.InternetBroadcast;
import fr.utc.simde.jessy.tools.NemopaySession;
/**
* Created by Samy on 24/10/2017.
*/
public class MainActivity extends BaseActivity {
private static final String LOG_TAG = "_MainActivity";
private static final String service = "https://assos.utc.fr";
......
package fr.utc.simde.jessy;
/**
* Created by Samy on 24/10/2017.
*/
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
......@@ -20,6 +16,10 @@ import android.support.v7.app.AlertDialog;
import android.util.Log;
import android.widget.Toast;
/**
* Created by Samy on 24/10/2017.
*/
public abstract class NFCActivity extends Activity {
private static final String LOG_TAG = "_NFCActivity";
private static NfcAdapter NFCAdapter;
......
package fr.utc.simde.payutc.adapters;
package fr.utc.simde.jessy.adapters;
import android.app.Activity;
import android.view.View;
......@@ -7,13 +7,8 @@ import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Samy on 29/10/2017.
......
package fr.utc.simde.payutc.adapters;
package fr.utc.simde.jessy.adapters;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;
import android.os.AsyncTask;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
......@@ -23,9 +19,7 @@ import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import fr.utc.simde.payutc.ArticleCategoryActivity;
import fr.utc.simde.payutc.R;
import fr.utc.simde.payutc.tools.HTTPRequest;
import fr.utc.simde.jessy.tools.HTTPRequest;
/**
* Created by Samy on 28/10/2017.
......
package fr.utc.simde.payutc.adapters;
package fr.utc.simde.jessy.adapters;
import android.app.Activity;
import android.view.LayoutInflater;
......@@ -10,7 +10,7 @@ import android.widget.Toast;
import com.fasterxml.jackson.databind.node.ArrayNode;
import fr.utc.simde.payutc.R;
import fr.utc.simde.jessy.R;
/**
* Created by Samy on 28/10/2017.
......
package fr.utc.simde.payutc.adapters;
package fr.utc.simde.jessy.adapters;
import android.app.Activity;
import android.view.LayoutInflater;
......@@ -12,8 +12,7 @@ import android.widget.TextView;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import fr.utc.simde.payutc.R;
import fr.utc.simde.payutc.adapters.ArticlesAdapter;
import fr.utc.simde.jessy.R;
/**
* Created by Samy on 29/10/2017.
......
package fr.utc.simde.payutc.adapters;
package fr.utc.simde.jessy.adapters;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.List;
import fr.utc.simde.payutc.ArticleCategoryActivity;
import fr.utc.simde.payutc.R;
import fr.utc.simde.payutc.tools.HTTPRequest;
/**
* Created by Samy on 29/10/2017.
*/
......
package fr.utc.simde.payutc.adapters;
package fr.utc.simde.jessy.adapters;
import android.annotation.SuppressLint;
import android.app.Activity;
......@@ -13,7 +13,7 @@ import android.widget.Toast;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import fr.utc.simde.payutc.R;
import fr.utc.simde.jessy.R;
/**
* Created by Samy on 29/10/2017.
......
package fr.utc.simde.payutc.adapters;
package fr.utc.simde.jessy.adapters;
import android.app.Activity;
import android.view.LayoutInflater;
......@@ -9,7 +9,7 @@ import android.widget.TextView;
import com.fasterxml.jackson.databind.node.ArrayNode;
import fr.utc.simde.payutc.R;
import fr.utc.simde.jessy.R;
/**
* Created by Samy on 28/10/2017.
......
package fr.utc.simde.payutc.fragments;
package fr.utc.simde.jessy.fragments;
import android.app.Activity;
import android.view.LayoutInflater;
......@@ -13,12 +13,12 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import fr.utc.simde.payutc.R;
import fr.utc.simde.payutc.adapters.ArticlesAdapter;
import fr.utc.simde.payutc.adapters.GridAdapter;
import fr.utc.simde.payutc.adapters.ListAdapater;
import fr.utc.simde.payutc.tools.Config;
import fr.utc.simde.payutc.tools.Panier;
import fr.utc.simde.jessy.R;
import fr.utc.simde.jessy.adapters.ArticlesAdapter;
import fr.utc.simde.jessy.adapters.GridAdapter;
import fr.utc.simde.jessy.adapters.ListAdapater;
import fr.utc.simde.jessy.tools.Config;
import fr.utc.simde.jessy.tools.Panier;
/**
* Created by Samy on 27/10/2017.
......
......@@ -449,7 +449,6 @@ public class NemopaySession {
protected int request(final String method, final String service, final String[] rightsNeeded) throws Exception { return request(method, service, new HashMap<String, String>(), rightsNeeded); }
protected int request(final String method, final String service, final Map<String, String> postArgs) throws Exception { return request(method, service, postArgs, new String[]{}); }
protected int request(final String method, final String service, final Map<String, String> postArgs, final String[] rightsNeeded) throws Exception {
Log.d(LOG_TAG, "url: " + url + method + "/" + service);
this.request = new HTTPRequest(url + method + "/" + service);
this.request.setGet(getArgs);
this.request.setPost(postArgs);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment