Class ApolloInterceptor.InterceptorResponse

  • Enclosing interface:
    ApolloInterceptor

    public static final class ApolloInterceptor.InterceptorResponse
    extends java.lang.Object
    InterceptorResponse class represents the response returned by the ApolloInterceptor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      com.apollographql.apollo.api.internal.Optional<java.util.Collection<com.apollographql.apollo.cache.normalized.Record>> cacheRecords  
      com.apollographql.apollo.api.internal.Optional<okhttp3.Response> httpResponse  
      com.apollographql.apollo.api.internal.Optional<com.apollographql.apollo.api.Response> parsedResponse  
    • Constructor Summary

      Constructors 
      Constructor Description
      InterceptorResponse​(okhttp3.Response httpResponse)  
      InterceptorResponse​(okhttp3.Response httpResponse, com.apollographql.apollo.api.Response parsedResponse, java.util.Collection<com.apollographql.apollo.cache.normalized.Record> cacheRecords)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • httpResponse

        public final com.apollographql.apollo.api.internal.Optional<okhttp3.Response> httpResponse
      • parsedResponse

        public final com.apollographql.apollo.api.internal.Optional<com.apollographql.apollo.api.Response> parsedResponse
      • cacheRecords

        public final com.apollographql.apollo.api.internal.Optional<java.util.Collection<com.apollographql.apollo.cache.normalized.Record>> cacheRecords
    • Constructor Detail

      • InterceptorResponse

        public InterceptorResponse​(okhttp3.Response httpResponse)
      • InterceptorResponse

        public InterceptorResponse​(okhttp3.Response httpResponse,
                                   com.apollographql.apollo.api.Response parsedResponse,
                                   java.util.Collection<com.apollographql.apollo.cache.normalized.Record> cacheRecords)