Ejemplo n.º 1
0
 public int getUserId() {
   final Authenticator aut = new Authenticator();
   final UserService userService = new UserService();
   Response res = new Response();
   res = userService.getUserID(this, aut.getLoggedInUserName(this));
   int id = (int) res.getObject();
   return id;
 }
Ejemplo n.º 2
0
 public int getMyActualFlat() {
   int actualFlatnumber;
   Response response = new Response();
   UserService userService = new UserService();
   response = userService.getUserFlats(this, getUserId());
   ArrayList<Integer> pa = new ArrayList<Integer>();
   pa = (ArrayList<Integer>) response.getObject();
   actualFlatnumber = pa.get(0);
   return actualFlatnumber;
 }