Search in sources :

Example 1 with UserLite

use of se.light.assembly64.model.UserLite in project assembly64fx by freabemania.

the class UserService method loginToken.

public String loginToken(String email, String token) throws HttpException {
    Response response = getClient().target(getBackendServer()).path("/leet/user3/tokenlogin/" + email + "/" + encrypt(token)).request().get();
    if (response.getStatus() != 200) {
        response.close();
        throw new HttpException(response.getStatus());
    }
    userLite = response.readEntity(UserLite.class);
    return userLite.getToken();
}
Also used : Response(javax.ws.rs.core.Response) HttpException(se.light.assembly64.model.HttpException) UserLite(se.light.assembly64.model.UserLite)

Aggregations

Response (javax.ws.rs.core.Response)1 HttpException (se.light.assembly64.model.HttpException)1 UserLite (se.light.assembly64.model.UserLite)1