Software Archaeology Find #3: Another Kind of Object Orientation
public void login(Actor pactor) {
mActor = pactor;
ClientLogin loginActor = new ClientLogin();
loginActor.setUsername(pactor.getUsername());
loginActor.setPassword(pactor.getPassword());
loginActor = (ClientLogin) pactor;
Actor ac = new Actor();
ac.setUsername(loginActor.getUsername());
ac.setPassword(loginActor.getPassword());
updateActor(ac);
//TODO: This should be uncommented for the final version
//mClient.clientLogin(loginActor);
}
mActor = pactor;
ClientLogin loginActor = new ClientLogin();
loginActor.setUsername(pactor.getUsername());
loginActor.setPassword(pactor.getPassword());
loginActor = (ClientLogin) pactor;
Actor ac = new Actor();
ac.setUsername(loginActor.getUsername());
ac.setPassword(loginActor.getPassword());
updateActor(ac);
//TODO: This should be uncommented for the final version
//mClient.clientLogin(loginActor);
}