Back to project page AndroIUT.
The source code is released under:
GNU General Public License
If you think the Android project AndroIUT listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.iutdijon.androiut2.iut.services; //from ww w .j a v a2 s. com import java.io.IOException; import android.app.Activity; import com.iutdijon.androiut2.iut.data.Credential; import com.iutdijon.androiut2.iut.data.account.UserAccount; import com.iutdijon.androiut2.util.loaders.GetAsyncServiceCall; /** * Classe permettant de requ?ter la webapi pour authentifier un utilisateur * Ce service est asynchrone afin de traiter toutes les requ?tes r?seau en dehors de l'IHM * @author Morgan Funtowicz * */ public class IUTLoginServiceCall extends GetAsyncServiceCall<Credential, Void, UserAccount> { public IUTLoginServiceCall(Activity context) { super(context); } @Override protected UserAccount run(Credential... params) throws IOException { UserAccount account = null; try { account = params[0].checkCredential(); } catch (Exception e) { account = null; } return account; } }