use of se.oort.diplicity.MemberTable in project android-diplicity by zond.
the class GameActivity method showPhaseStates.
public void showPhaseStates() {
hideAllExcept(R.id.phase_state_view);
final MemberTable phaseStateView = (MemberTable) findViewById(R.id.phase_state_view);
phaseStateView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
flickFrameLayout.onTouchEvent(motionEvent);
phaseStateView.onTouchEvent(motionEvent);
return true;
}
});
handleReq(phaseStateService.ListPhaseStates(game.ID, phaseMeta.PhaseOrdinal.toString()), new Sendable<MultiContainer<PhaseState>>() {
@Override
public void send(MultiContainer<PhaseState> phaseStateMultiContainer) {
List<PhaseState> phaseStates = new ArrayList<PhaseState>();
for (SingleContainer<PhaseState> phaseStateSingleContainer : phaseStateMultiContainer.Properties) {
phaseStates.add(phaseStateSingleContainer.Properties);
}
phaseStateView.setPhaseStates(game, phaseMeta, phaseStates);
phaseStateView.setMembers(GameActivity.this, game, game.Members);
}
}, getResources().getString(R.string.loading_phase_settings));
}
Aggregations