Show / Hide Table of Contents

    Class ActivityDatum

    Activity the user is engaged in, as inferred from the phone's sensors. Note the following differences between iOS and Android:

    • Confidence values will not be reported for Android. All values will be NotAvailable.
    • On iOS, all values of Phase will be Starting and all values of State will be Active. This is the case for all Activities and all ActivityDatum objects reported for iOS.
    Inheritance
    System.Object
    Datum
    ActivityDatum
    Implements
    IActivityDatum
    IDatum
    Inherited Members
    Datum.FromJSON(String)
    Datum.GetJSON(AnonymizedJsonContractResolver, Boolean)
    Datum.GetHashCode()
    Datum.Equals(Object)
    Datum.Id
    Datum.DeviceId
    Datum.Timestamp
    Datum.ProtocolId
    Datum.Anonymized
    Datum.BuildId
    Datum.ParticipantId
    Datum.DeviceManufacturer
    Datum.DeviceModel
    Datum.OperatingSystem
    Datum.TaggedEventId
    Datum.TaggedEventTags
    Datum.SensingAgentStateDescription
    Datum.LocalOffsetFromUTC
    Namespace: Sensus.Probes.Movement
    Assembly: SensusAndroid.dll
    Syntax
    public class ActivityDatum : Datum, IActivityDatum, IDatum

    Constructors

    ActivityDatum(DateTimeOffset, Activities, ActivityPhase, ActivityState, ActivityConfidence)

    Declaration
    public ActivityDatum(DateTimeOffset timestamp, Activities activity, ActivityPhase phase, ActivityState state, ActivityConfidence confidence)
    Parameters
    Type Name Description
    System.DateTimeOffset timestamp
    Activities activity
    ActivityPhase phase
    ActivityState state
    ActivityConfidence confidence

    Properties

    Activity

    The type of activity (see Activities).

    Declaration
    public Activities Activity { get; set; }
    Property Value
    Type Description
    Activities

    The activity.

    ActivityContinuing

    Gets the activity the user is continuing to engage in. If there is not an activity continuing (e.g., if the ActivityPhase is not During), then the value will be Unknown.

    Declaration
    [ListProbeTriggerProperty]
    public Activities ActivityContinuing { get; }
    Property Value
    Type Description
    Activities

    The activity that is continuing.

    ActivityStarting

    Gets the activity the user is starting to engage in. If there is not an activity starting (e.g., if the ActivityPhase is not Starting), then the value will be Unknown.

    Declaration
    [ListProbeTriggerProperty]
    public Activities ActivityStarting { get; }
    Property Value
    Type Description
    Activities

    The activity that is starting.

    ActivityStopping

    Gets the activity the user is stopping. If there is not an activity stopping (e.g., if the ActivityPhase is not Stopping), then the value will be Unknown.

    Declaration
    [ListProbeTriggerProperty]
    public Activities ActivityStopping { get; }
    Property Value
    Type Description
    Activities

    The activity that is stopping.

    Confidence

    The confidence level of the estimated activity information.

    Declaration
    public ActivityConfidence Confidence { get; set; }
    Property Value
    Type Description
    ActivityConfidence

    The confidence.

    DisplayDetail

    Declaration
    public override string DisplayDetail { get; }
    Property Value
    Type Description
    System.String
    Overrides
    Datum.DisplayDetail

    Phase

    The phase of the Activity (see ActivityPhase).

    Declaration
    public ActivityPhase Phase { get; set; }
    Property Value
    Type Description
    ActivityPhase

    The phase.

    State

    The state of the Phase (see ActivityState).

    Declaration
    public ActivityState State { get; set; }
    Property Value
    Type Description
    ActivityState

    The state.

    StringPlaceholderValue

    Gets the string placeholder value, which is ActivityStarting, ActivityContinuing, or ActivityStopping, whichever of these has a value that is not Unknown. It should not be the case that all of these have values of Unknown.

    Declaration
    public override object StringPlaceholderValue { get; }
    Property Value
    Type Description
    System.Object

    The string placeholder value.

    Overrides
    Datum.StringPlaceholderValue

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    Datum.ToString()

    Implements

    IActivityDatum
    IDatum
    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX