Search in sources :

Example 1 with EzyZoneAware

use of com.tvd12.ezyfoxserver.client.entity.EzyZoneAware in project ezyfox-server-android-client by youngmonkeys.

the class EzyLoginSuccessHandler method handle.

@Override
public void handle(EzyArray data) {
    EzyData responseData = data.get(4, EzyData.class);
    EzyUser user = newUser(data);
    EzyZone zone = newZone(data);
    ((EzyMeAware) client).setMe(user);
    ((EzyZoneAware) client).setZone(zone);
    handleLoginSuccess(responseData);
    EzyLogger.debug("user: " + user + " logged in successfully");
}
Also used : EzyZone(com.tvd12.ezyfoxserver.client.entity.EzyZone) EzyUser(com.tvd12.ezyfoxserver.client.entity.EzyUser) EzyZoneAware(com.tvd12.ezyfoxserver.client.entity.EzyZoneAware) EzyData(com.tvd12.ezyfoxserver.client.entity.EzyData) EzyMeAware(com.tvd12.ezyfoxserver.client.entity.EzyMeAware)

Aggregations

EzyData (com.tvd12.ezyfoxserver.client.entity.EzyData)1 EzyMeAware (com.tvd12.ezyfoxserver.client.entity.EzyMeAware)1 EzyUser (com.tvd12.ezyfoxserver.client.entity.EzyUser)1 EzyZone (com.tvd12.ezyfoxserver.client.entity.EzyZone)1 EzyZoneAware (com.tvd12.ezyfoxserver.client.entity.EzyZoneAware)1