title: How to set dynamically model class to Retrofit requests?
body: <p>In my application i want use <strong>Retrofit2</strong> library for requests and i want set <strong>dynamically</strong> response model, i don't want set model into <code>interface</code> model!<br>
  <strong>For example :</strong> 
  <strong>My interface method is :</strong> </p>
  
  <pre><code>@GET("api/server?mode=supports")
  Call&lt;SupportListResponse&gt; getSupport_List(@Header("jwt") String token);
  </code></pre>
  
  <p>I don't want set <code>SupportListResponse</code> into <code>Call&lt;&gt;</code> , i want set this model <strong>dynamically</strong> from <code>Activity</code>/<code>Fragment</code> class!</p>
  
  <p>How can i set <strong>general model</strong> class <strong>instead of</strong> <code>SupportListResponse</code> ?</p>
  
  <p><strong>My activity full code :</strong> </p>
  
  <pre><code>public class TimerRecyclerActivity extends AppCompatActivity {
  
      private RecyclerView recyclerView;
      private ProgressBar timerProgressBar;
      private List&lt;Today&gt; model = new ArrayList&lt;&gt;();
      private Adapter adapter;
      private ApiInterface api;
      private LinearLayoutManager layoutManager;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_timer_recycler);
  
          api = ApiClient.getClient().create(ApiInterface.class);
          adapter = new Adapter(getApplicationContext(), model);
          adapter.setHasStableIds(true);
          recyclerView = findViewById(R.id.timerRecyclerView);
          timerProgressBar = findViewById(R.id.timerProgressBar);
          layoutManager = new LinearLayoutManager(getApplicationContext());
          recyclerView.setLayoutManager(layoutManager);
          recyclerView.setAdapter(adapter);
  
          Call&lt;AuctionsListResponse&gt; call = api.getMainAuctions("", 1, 10);
          call.enqueue(new Callback&lt;AuctionsListResponse&gt;() {
              @Override
              public void onResponse(Call&lt;AuctionsListResponse&gt; call, Response&lt;AuctionsListResponse&gt; response) {
                  if (response.isSuccessful()) {
                      if (response.body().getRes() != null) {
                          if (response.body().getRes().getToday().size() &gt; 0) {
                              timerProgressBar.setVisibility(View.GONE);
                              model.clear();
                              model.addAll(response.body().getRes().getToday());
                              adapter.notifyDataSetChanged();
                          }
                      }
                  }
              }
  
              @Override
              public void onFailure(Call&lt;AuctionsListResponse&gt; call, Throwable t) {
  
              }
          });
      }
  }
  </code></pre>
  
  <p>How can i it?</p>