This class is deprecated.
no longer used with Exposure Window API.
Information about an exposure, meaning a single diagnosis key over a contiguous period of time specified by durationMinutes.
The client can get the exposure information via
ExposureNotificationClient.getExposureInformation(String)
.
Nested Class Summary
class | ExposureInformation.ExposureInformationBuilder | A builder for
ExposureInformation . |
Inherited Constant Summary
Field Summary
public static final Creator<ExposureInformation> | CREATOR |
Public Method Summary
boolean | |
int[] |
getAttenuationDurationsInMinutes()
Array of durations in minutes at certain radio signal attenuations.
|
int |
getAttenuationValue()
The time-weighted signal strength attenuation value which goes into
getTotalRiskScore() .
|
long |
getDateMillisSinceEpoch()
Day-level resolution that the exposure occurred, in milliseconds since epoch.
|
int |
getDurationMinutes()
Length of exposure in 5 minute increments, with a 30 minute maximum.
|
int |
getTotalRiskScore()
The total risk calculated for the exposure.
|
int |
getTransmissionRiskLevel()
The transmission risk associated with the matched diagnosis key.
|
int |
hashCode()
|
String |
toString()
|
void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<ExposureInformation> CREATOR
Public Methods
public boolean equals (Object obj)
public int[] getAttenuationDurationsInMinutes ()
Array of durations in minutes at certain radio signal attenuations. The thresholds
are defined in
ExposureConfiguration.getDurationAtAttenuationThresholds()
.
Array index 0: Sum of durations for all exposures when attenuation < low threshold.
Array index 1: Sum of durations for all exposures when low threshold <= attenuation < high threshold.
Array index 2: Sum of durations for all exposures when attenuation >= high threshold.
public int getAttenuationValue ()
The time-weighted signal strength attenuation value which goes into
getTotalRiskScore()
. Value will be between 0 and 255.
public long getDateMillisSinceEpoch ()
Day-level resolution that the exposure occurred, in milliseconds since epoch.
public int getDurationMinutes ()
Length of exposure in 5 minute increments, with a 30 minute maximum.
public int getTotalRiskScore ()
The total risk calculated for the exposure. See
ExposureConfiguration
for more information about what is represented by the
risk score, it will be a value 0-4096.
public int getTransmissionRiskLevel ()
The transmission risk associated with the matched diagnosis key.