public class DefaultAsyncViewResult extends java.lang.Object implements AsyncViewResult
Created by michael on 05/05/14.
| Constructor and Description |
|---|
DefaultAsyncViewResult(rx.Observable<AsyncViewRow> rows,
int totalRows,
boolean success,
JsonObject error,
JsonObject debug) |
| Modifier and Type | Method and Description |
|---|---|
JsonObject |
debug()
If debug was enabled on the query, it is contained here.
|
JsonObject |
error()
If it was not successful, an error is contained here.
|
rx.Observable<AsyncViewRow> |
rows()
Emits one
AsyncViewRow for each row received from the view. |
boolean |
success()
If the query was successful.
|
int |
totalRows()
The total number of rows.
|
public DefaultAsyncViewResult(rx.Observable<AsyncViewRow> rows, int totalRows, boolean success, JsonObject error, JsonObject debug)
public rx.Observable<AsyncViewRow> rows()
AsyncViewResultEmits one AsyncViewRow for each row received from the view.
rows in interface AsyncViewResultObservable containing view rows.public int totalRows()
AsyncViewResultThe total number of rows.
totalRows in interface AsyncViewResultpublic boolean success()
AsyncViewResultIf the query was successful.
success in interface AsyncViewResultpublic JsonObject error()
AsyncViewResultIf it was not successful, an error is contained here.
error in interface AsyncViewResultpublic JsonObject debug()
AsyncViewResultIf debug was enabled on the query, it is contained here.
debug in interface AsyncViewResult