public class

Sample

extends Object
java.lang.Object
   ↳ com.digi.android.idigi.library.models.Sample

Class Overview

This class corresponds to the structure of a sample that can be stored in an iDigi account for future queries by iDigi client applications.

Summary

Fields
public static SimpleDateFormat ISO8601_FORMAT
Public Constructors
Sample(String source, String value, String unit, String timestamp)
Sample(String source, String value)
Sample(String source, String value, String unit)
Public Methods
String getSource()
Returns the sample source.
String getTimestamp()
Returns the sample timestamp (ISO8601 format).
String getUnit()
Returns the sample unit.
String getValue()
Returns the sample Value.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static SimpleDateFormat ISO8601_FORMAT

Public Constructors

public Sample (String source, String value, String unit, String timestamp)

public Sample (String source, String value)

public Sample (String source, String value, String unit)

Public Methods

public String getSource ()

Returns the sample source.

Returns
  • The sample source.

public String getTimestamp ()

Returns the sample timestamp (ISO8601 format).

Returns
  • The sample timestamp.

public String getUnit ()

Returns the sample unit.

Returns
  • The sample unit.

public String getValue ()

Returns the sample Value.

Returns
  • The sample value.