code: @OnSuccess(AnimalTask.class)
    public void onSuccess(@Param("sound") String sound,
        @Param(Groundy.TASK_IMPLEMENTATION) Class<?> impl) {
      if (impl == DogTask.class) findViewById(R.id.send_random_task).setEnabled(true);
      Toast.makeText(InheritanceExample.this, sound, Toast.LENGTH_SHORT).show();
    }
docs: we are using AnimalTask (super class of CatTask and DogTask)