com.samsung.android.sdk.healthdata
Class HealthResultHolder.BaseResult
- java.lang.Object
-
- com.samsung.android.sdk.healthdata.HealthResultHolder.BaseResult
-
- All Implemented Interfaces:
- Parcelable
- Direct Known Subclasses:
- HealthDataResolver.AggregateResult, HealthDataResolver.ReadResult, HealthPermissionManager.PermissionResult
- Enclosing interface:
- HealthResultHolder<T extends HealthResultHolder.BaseResult>
public static class HealthResultHolder.BaseResult extends Object implements Parcelable
This class defines basic information that includes the status of a request.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description static int
STATUS_CANCELED
Deprecated.static int
STATUS_FAILED
Status to indicate that a request fails.static int
STATUS_INVALID_INPUT_DATA
Status to indicate that there is invalid data in a inserting request.static int
STATUS_OUT_OF_SPACE
Status to indicate that there is no space for the storage.static int
STATUS_SUCCESSFUL
Status to indicate that a request is successful.static int
STATUS_UNKNOWN
Unknown status.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getCount()
Returns the number of operated data.int
getStatus()
Gets the status for a request.
-
-
-
Field Detail
-
STATUS_SUCCESSFUL
public static final int STATUS_SUCCESSFUL
Status to indicate that a request is successful.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
STATUS_CANCELED
public static final int STATUS_CANCELED
Deprecated.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
STATUS_FAILED
public static final int STATUS_FAILED
Status to indicate that a request fails.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
STATUS_INVALID_INPUT_DATA
public static final int STATUS_INVALID_INPUT_DATA
Status to indicate that there is invalid data in a inserting request.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
STATUS_OUT_OF_SPACE
public static final int STATUS_OUT_OF_SPACE
Status to indicate that there is no space for the storage.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
STATUS_UNKNOWN
public static final int STATUS_UNKNOWN
Unknown status.- Since:
- 1.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatus
public int getStatus()
Gets the status for a request.It gives
STATUS_INVALID_INPUT_DATA
if data validation fails for inserting or updating data request. The data validation includes:- Missing mandatory fields
- Wrong field type
- Out of the data value range
- Oversized BLOB
- Returns:
STATUS_SUCCESSFUL
if the progress status is successful,
or one of failure reasons such asSTATUS_INVALID_INPUT_DATA
.- Since:
- 1.0.0
-
getCount
public int getCount()
Returns the number of operated data.- Returns:
- The count
- Since:
- 1.0.0
-
-