com.samsung.android.sdk.healthdata

Class HealthResultHolder.BaseResult

  • java.lang.Object
    • com.samsung.android.sdk.healthdata.HealthResultHolder.BaseResult
    • 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 as STATUS_INVALID_INPUT_DATA.
        Since:
        1.0.0
      • getCount

        public int getCount()
        Returns the number of operated data.
        Returns:
        The count
        Since:
        1.0.0