private void HandleUpdate(IUpdateResponse update) { if (update is ShowModifiesResponse) { ShowModifiesResponse newMatchDto = (ShowModifiesResponse)update; Match newMatch = DTOUtils.GetFromDTO(newMatchDto.Match); _client.ShowUpdates(newMatch); } }
public void ShowUpdates(Match match) { IResponse response = new ShowModifiesResponse(new MatchDTO(match)); SendResponse(response); }