public final class

ContentResponse

extends Event
java.lang.Object
   ↳ com.neomades.event.Event
     ↳ com.neomades.content.ContentResponse

Class Overview

ContentQuery response.

A ContentQuery is executed through Cache and Network. Then, two types of response are generated by ContentManager, the first is the response from the cache (an intermediate response - the last saved data from cache), the second from the network (the final response - fresh data from server).

To receive ContentResponse from ContentManager, either override onReceiveEvent(Event) or register an EventReceiver in the Application event bus.

Summary

Constants
String TYPE
Public Methods
ContentQuery getQuery()
boolean isIntermediate()
Returns if the response is provided by the cache (return true) or network (return false)
[Expand]
Inherited Methods
From class com.neomades.event.Event
From class java.lang.Object

Constants

public static final String TYPE

Constant Value: "com.neomades.content.ContentResponse"

Public Methods

public ContentQuery getQuery ()

Returns
  • the original query

public boolean isIntermediate ()

Returns if the response is provided by the cache (return true) or network (return false)

Returns
  • true if the response is provided by the cache but another response will arrive after