Class DiagnosticsOptions

java.lang.Object
es.situm.sdk.location.DiagnosticsOptions
All Implemented Interfaces:
android.os.Parcelable, MapperInterface

public class DiagnosticsOptions extends Object implements android.os.Parcelable, MapperInterface
Configuration options related to remote diagnostic and telemetry.
  • Field Details

  • Method Details

    • isUploadDiagnosticsData

      public Boolean isUploadDiagnosticsData()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • fromMap

      public static DiagnosticsOptions fromMap(Map<String,Object> map) throws IllegalArgumentException
      Return a new DiagnosticsOptions instance object containing the data at the given map. Use MapperInterface to populate the Map. The expected fields are those defined at DiagnosticsOptions.Builder.
      Parameters:
      map - Map containing the data used to populate the new object.
      Returns:
      New instance.
      Throws:
      IllegalArgumentException - If there is not enough information at the given map or it is incorrect.
    • toMap

      public Map<String,Object> toMap()
      Description copied from interface: MapperInterface
      Method to transform object into Map<String, Object>
      Specified by:
      toMap in interface MapperInterface
      Returns:
      Map<String, Object> with the information of the object mapped