Table of Contents

Class UpdatableActivity

Namespace
Tudormobile.Strava.Model
Assembly
Tudormobile.Strava.dll

An updatable activity record.

public class UpdatableActivity
Inheritance
UpdatableActivity
Inherited Members

Constructors

UpdatableActivity(string?, string?, SportTypes?)

Initializes a new instance of the UpdatableActivity class with the specified name and description.

public UpdatableActivity(string? name = null, string? description = null, SportTypes? sportType = null)

Parameters

name string

The name of the activity. If null, an empty string is used.

description string

The description of the activity. If null, an empty string is used.

sportType SportTypes?

The type of sport associated with the activity. If null, the default sport type is used.

Properties

Commute

Gets or sets a value indicating whether this activity is a commute.

public bool Commute { get; set; }

Property Value

bool

Description

Gets or sets a description of the activity.

public string? Description { get; set; }

Property Value

string

Name

Gets or sets the name associated with the activity.

public string? Name { get; set; }

Property Value

string

SportType

Gets or sets the type of sport associated with the activity.

public SportTypes SportType { get; set; }

Property Value

SportTypes

Trainer

Gets or sets a value indicating whether this activity was recorded on a training machine.

public bool Trainer { get; set; }

Property Value

bool