Package 

Class NetworkResponse


  • 
    public final class NetworkResponse
    
                        

    A class which represents a network response. This will include the HTTP status code, as well as any response data.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer code
      private final String data
    • Method Summary

      Modifier and Type Method Description
      final Integer getCode()
      final String getData()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetworkResponse

        NetworkResponse(Integer code, String data)
        Parameters:
        code - The HTTP response code received after attempting to make the request.
        data - The body data contained within the response.