title: Pass the custom list value adapter to activity
body: <p>I am using Retrofit concept, I need to pass the list value to activity. Here I attached the code where I get the response from backend.</p>
  
  <pre><code>private void callCheckTopCourseDetails(String getId) {
      APIInterface apiInterface = APIClient.getClient().create(APIInterface.class);
      Call&lt;Example&gt; call2 = apiInterface.doGetWishlist(getId);
      call2.enqueue(new Callback&lt;Example&gt;() {
          @Override
          public void onResponse(Call&lt;Example&gt; call, Response&lt;Example&gt; response) {
              if (response.code() == RESPONSECODE_200 || response.code() == RESPONSECODE_201) {
                  List&lt;RatingsDetail&gt; getRatingDetails = response.body().getAndroid().getRatingsDetails();
                  List&lt;CourseDetail&gt; getCourseDetail = response.body().getAndroid().getCoursedetails();
              }
          }
  
          @Override
          public void onFailure(Call&lt;Example&gt; call, Throwable t) {
              Log.i("ttttttttt", "" + t);
              call.cancel();
          }
      });
  }
  </code></pre>