mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-27 07:49:28 +00:00
Improved files header
This commit is contained in:
parent
24aa80f63e
commit
890344abc3
@ -12,6 +12,9 @@ import java.util.Objects;
|
|||||||
/**
|
/**
|
||||||
* Comunic account class
|
* Comunic account class
|
||||||
*
|
*
|
||||||
|
* This class stores the account tokens
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
* Created by pierre on 10/29/17.
|
* Created by pierre on 10/29/17.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -17,6 +17,12 @@ import java.util.ArrayList;
|
|||||||
|
|
||||||
import org.communiquons.android.comunic.client.api.*;
|
import org.communiquons.android.comunic.client.api.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Login activity of the application
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
|
*/
|
||||||
|
|
||||||
public class LoginActivity extends AppCompatActivity {
|
public class LoginActivity extends AppCompatActivity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -11,6 +11,12 @@ import android.widget.Toast;
|
|||||||
|
|
||||||
import org.communiquons.android.comunic.client.api.APIRequestTask;
|
import org.communiquons.android.comunic.client.api.APIRequestTask;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Main activity of the application
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
|
*/
|
||||||
public class MainActivity extends AppCompatActivity {
|
public class MainActivity extends AppCompatActivity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -11,6 +11,7 @@ import java.io.FileOutputStream;
|
|||||||
/**
|
/**
|
||||||
* Application utilities
|
* Application utilities
|
||||||
*
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
* Created by pierre on 10/29/17.
|
* Created by pierre on 10/29/17.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import java.net.URLEncoder;
|
|||||||
/**
|
/**
|
||||||
* This class stores on parameter for a POST request
|
* This class stores on parameter for a POST request
|
||||||
*
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
* Created by pierre on 10/31/17.
|
* Created by pierre on 10/31/17.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -5,8 +5,9 @@ import org.communiquons.android.comunic.client.api.APIPostData;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class handles the setup of the parametres required to setup an API request
|
* This class handles the setup of the parameters required to setup an API request
|
||||||
*
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
* Created by pierre on 10/31/17.
|
* Created by pierre on 10/31/17.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -22,6 +22,12 @@ import java.net.URL;
|
|||||||
/**
|
/**
|
||||||
* Perform an API request on the server
|
* Perform an API request on the server
|
||||||
*
|
*
|
||||||
|
* API requests are made on a separate Thread using AsyncTask.
|
||||||
|
*
|
||||||
|
* The method requesting an API request has to implement the onPostExecute method in order to be
|
||||||
|
* able to have a personalized data process
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
* Created by pierre on 10/31/17.
|
* Created by pierre on 10/31/17.
|
||||||
*/
|
*/
|
||||||
public abstract class APIRequestTask extends AsyncTask<APIRequestParameters, Void, APIResponse> {
|
public abstract class APIRequestTask extends AsyncTask<APIRequestParameters, Void, APIResponse> {
|
||||||
|
@ -6,6 +6,7 @@ import org.json.JSONObject;
|
|||||||
/**
|
/**
|
||||||
* Store and serve the response of an API request
|
* Store and serve the response of an API request
|
||||||
*
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
* Created by pierre on 10/31/17.
|
* Created by pierre on 10/31/17.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user