Class TelephonyDatum
Represents phone call meta-data in terms of the phones TelephonyState, the other phone number, and -- if
a call just ended -- the duration of the call. Both IncomingCall and OutgoingCall
values will be associated with an unspecified CallDurationSeconds, as the former are recorded to mark the time
at which the incoming call arrived or went out, respectively. When a call ends and the phone returns to Idle, then
there will be a value for CallDurationSeconds indicating how long the call lasted.
Inheritance
System.Object
TelephonyDatum
Assembly: SensusAndroid.dll
Syntax
public class TelephonyDatum : Datum, ITelephonyDatum, IDatum
Constructors
TelephonyDatum(DateTimeOffset, TelephonyState, String, Nullable<Double>)
Declaration
public TelephonyDatum(DateTimeOffset timestamp, TelephonyState state, string phoneNumber, Nullable<double> callDurationSeconds)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
timestamp |
|
TelephonyState |
state |
|
System.String |
phoneNumber |
|
System.Nullable<System.Double> |
callDurationSeconds |
|
Properties
CallDurationSeconds
The duration of the call. Note that this includes the time spent ringing.
Declaration
[DoubleProbeTriggerProperty("Call Duration (Secs.)")]
public Nullable<double> CallDurationSeconds { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Double> |
The call duration seconds.
|
DisplayDetail
Declaration
public override string DisplayDetail { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
PhoneNumber
Declaration
[StringProbeTriggerProperty("Phone #")]
[Anonymizable]
public string PhoneNumber { get; set; }
Property Value
Type |
Description |
System.String |
|
State
Declaration
[ListProbeTriggerProperty]
public TelephonyState State { get; set; }
Property Value
StringPlaceholderValue
Gets the string placeholder value, which is the phone number.
Declaration
public override object StringPlaceholderValue { get; }
Property Value
Type |
Description |
System.Object |
The string placeholder value.
|
Overrides
Methods
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Implements