title: Retrofit return boolean value
body: <p>I want to run changesHasBeenSaved if saveChanges function gives me true value.
  How can I get boolean or string or integer, any value, when Retrofit finish?
  Is it possible?</p>
  
  <p>I need a function similar this:</p>
  
  <pre><code>public boolean saveChanges()
  {
      Boolean output = false;
      RequestAPI requestAPI = Requests.getRetrofit();
      Call&lt;Object&gt; jsonObjectCall = requestAPI.readAllCategoeies();
  
      jsonObjectCall.enqueue(new Callback&lt;Object&gt;() {
          @Override
          public void onResponse(Call&lt;Object&gt; call, Response&lt;Object&gt; response) {
              if(response.body() != null) {
                  output = true;
              }
  
          }
  
          @Override
          public void onFailure(Call&lt;Object&gt; call, Throwable t) {
              call.cancel();
          }
      });
  
      return output;
  }
  </code></pre>