models

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// ActivityZoneTypeHeartrate captures enum value "heartrate"
	ActivityZoneTypeHeartrate string = "heartrate"

	// ActivityZoneTypePower captures enum value "power"
	ActivityZoneTypePower string = "power"
)
View Source
const (

	// BaseStreamResolutionLow captures enum value "low"
	BaseStreamResolutionLow string = "low"

	// BaseStreamResolutionMedium captures enum value "medium"
	BaseStreamResolutionMedium string = "medium"

	// BaseStreamResolutionHigh captures enum value "high"
	BaseStreamResolutionHigh string = "high"
)
View Source
const (

	// BaseStreamSeriesTypeDistance captures enum value "distance"
	BaseStreamSeriesTypeDistance string = "distance"

	// BaseStreamSeriesTypeTime captures enum value "time"
	BaseStreamSeriesTypeTime string = "time"
)
View Source
const (

	// ExplorerSegmentClimbCategoryDescNC captures enum value "NC"
	ExplorerSegmentClimbCategoryDescNC string = "NC"

	// ExplorerSegmentClimbCategoryDescNr4 captures enum value "4"
	ExplorerSegmentClimbCategoryDescNr4 string = "4"

	// ExplorerSegmentClimbCategoryDescNr3 captures enum value "3"
	ExplorerSegmentClimbCategoryDescNr3 string = "3"

	// ExplorerSegmentClimbCategoryDescNr2 captures enum value "2"
	ExplorerSegmentClimbCategoryDescNr2 string = "2"

	// ExplorerSegmentClimbCategoryDescNr1 captures enum value "1"
	ExplorerSegmentClimbCategoryDescNr1 string = "1"

	// ExplorerSegmentClimbCategoryDescHC captures enum value "HC"
	ExplorerSegmentClimbCategoryDescHC string = "HC"
)
View Source
const (

	// SummarySegmentActivityTypeRide captures enum value "Ride"
	SummarySegmentActivityTypeRide string = "Ride"

	// SummarySegmentActivityTypeRun captures enum value "Run"
	SummarySegmentActivityTypeRun string = "Run"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityStats

type ActivityStats struct {

	// all ride totals
	AllRideTotals *ActivityTotal `json:"all_ride_totals,omitempty"`

	// all run totals
	AllRunTotals *ActivityTotal `json:"all_run_totals,omitempty"`

	// all swim totals
	AllSwimTotals *ActivityTotal `json:"all_swim_totals,omitempty"`

	// The highest climb ridden by the athlete.
	BiggestClimbElevationGain float64 `json:"biggest_climb_elevation_gain,omitempty"`

	// The longest distance ridden by the athlete.
	BiggestRideDistance float64 `json:"biggest_ride_distance,omitempty"`

	// recent ride totals
	RecentRideTotals *ActivityTotal `json:"recent_ride_totals,omitempty"`

	// recent run totals
	RecentRunTotals *ActivityTotal `json:"recent_run_totals,omitempty"`

	// recent swim totals
	RecentSwimTotals *ActivityTotal `json:"recent_swim_totals,omitempty"`

	// ytd ride totals
	YtdRideTotals *ActivityTotal `json:"ytd_ride_totals,omitempty"`

	// ytd run totals
	YtdRunTotals *ActivityTotal `json:"ytd_run_totals,omitempty"`

	// ytd swim totals
	YtdSwimTotals *ActivityTotal `json:"ytd_swim_totals,omitempty"`
}

ActivityStats A set of rolled-up statistics and totals for an athlete

swagger:model activityStats

func (*ActivityStats) ContextValidate

func (m *ActivityStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this activity stats based on the context it is used

func (*ActivityStats) MarshalBinary

func (m *ActivityStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActivityStats) UnmarshalBinary

func (m *ActivityStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActivityStats) Validate

func (m *ActivityStats) Validate(formats strfmt.Registry) error

Validate validates this activity stats

type ActivityTotal

type ActivityTotal struct {

	// The total number of achievements of the considered activities.
	AchievementCount int64 `json:"achievement_count,omitempty"`

	// The number of activities considered in this total.
	Count int64 `json:"count,omitempty"`

	// The total distance covered by the considered activities.
	Distance float32 `json:"distance,omitempty"`

	// The total elapsed time of the considered activities.
	ElapsedTime int64 `json:"elapsed_time,omitempty"`

	// The total elevation gain of the considered activities.
	ElevationGain float32 `json:"elevation_gain,omitempty"`

	// The total moving time of the considered activities.
	MovingTime int64 `json:"moving_time,omitempty"`
}

ActivityTotal A roll-up of metrics pertaining to a set of activities. Values are in seconds and meters.

swagger:model activityTotal

func (*ActivityTotal) ContextValidate

func (m *ActivityTotal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this activity total based on context it is used

func (*ActivityTotal) MarshalBinary

func (m *ActivityTotal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActivityTotal) UnmarshalBinary

func (m *ActivityTotal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActivityTotal) Validate

func (m *ActivityTotal) Validate(formats strfmt.Registry) error

Validate validates this activity total

type ActivityType

type ActivityType string

ActivityType An enumeration of the types an activity may have. Note that this enumeration does not include new sport types (e.g. MountainBikeRide, EMountainBikeRide), activities with these sport types will have the corresponding activity type (e.g. Ride for MountainBikeRide, EBikeRide for EMountainBikeRide)

swagger:model activityType

const (

	// ActivityTypeAlpineSki captures enum value "AlpineSki"
	ActivityTypeAlpineSki ActivityType = "AlpineSki"

	// ActivityTypeBackcountrySki captures enum value "BackcountrySki"
	ActivityTypeBackcountrySki ActivityType = "BackcountrySki"

	// ActivityTypeCanoeing captures enum value "Canoeing"
	ActivityTypeCanoeing ActivityType = "Canoeing"

	// ActivityTypeCrossfit captures enum value "Crossfit"
	ActivityTypeCrossfit ActivityType = "Crossfit"

	// ActivityTypeEBikeRide captures enum value "EBikeRide"
	ActivityTypeEBikeRide ActivityType = "EBikeRide"

	// ActivityTypeElliptical captures enum value "Elliptical"
	ActivityTypeElliptical ActivityType = "Elliptical"

	// ActivityTypeGolf captures enum value "Golf"
	ActivityTypeGolf ActivityType = "Golf"

	// ActivityTypeHandcycle captures enum value "Handcycle"
	ActivityTypeHandcycle ActivityType = "Handcycle"

	// ActivityTypeHike captures enum value "Hike"
	ActivityTypeHike ActivityType = "Hike"

	// ActivityTypeIceSkate captures enum value "IceSkate"
	ActivityTypeIceSkate ActivityType = "IceSkate"

	// ActivityTypeInlineSkate captures enum value "InlineSkate"
	ActivityTypeInlineSkate ActivityType = "InlineSkate"

	// ActivityTypeKayaking captures enum value "Kayaking"
	ActivityTypeKayaking ActivityType = "Kayaking"

	// ActivityTypeKitesurf captures enum value "Kitesurf"
	ActivityTypeKitesurf ActivityType = "Kitesurf"

	// ActivityTypeNordicSki captures enum value "NordicSki"
	ActivityTypeNordicSki ActivityType = "NordicSki"

	// ActivityTypeRide captures enum value "Ride"
	ActivityTypeRide ActivityType = "Ride"

	// ActivityTypeRockClimbing captures enum value "RockClimbing"
	ActivityTypeRockClimbing ActivityType = "RockClimbing"

	// ActivityTypeRollerSki captures enum value "RollerSki"
	ActivityTypeRollerSki ActivityType = "RollerSki"

	// ActivityTypeRowing captures enum value "Rowing"
	ActivityTypeRowing ActivityType = "Rowing"

	// ActivityTypeRun captures enum value "Run"
	ActivityTypeRun ActivityType = "Run"

	// ActivityTypeSail captures enum value "Sail"
	ActivityTypeSail ActivityType = "Sail"

	// ActivityTypeSkateboard captures enum value "Skateboard"
	ActivityTypeSkateboard ActivityType = "Skateboard"

	// ActivityTypeSnowboard captures enum value "Snowboard"
	ActivityTypeSnowboard ActivityType = "Snowboard"

	// ActivityTypeSnowshoe captures enum value "Snowshoe"
	ActivityTypeSnowshoe ActivityType = "Snowshoe"

	// ActivityTypeSoccer captures enum value "Soccer"
	ActivityTypeSoccer ActivityType = "Soccer"

	// ActivityTypeStairStepper captures enum value "StairStepper"
	ActivityTypeStairStepper ActivityType = "StairStepper"

	// ActivityTypeStandUpPaddling captures enum value "StandUpPaddling"
	ActivityTypeStandUpPaddling ActivityType = "StandUpPaddling"

	// ActivityTypeSurfing captures enum value "Surfing"
	ActivityTypeSurfing ActivityType = "Surfing"

	// ActivityTypeSwim captures enum value "Swim"
	ActivityTypeSwim ActivityType = "Swim"

	// ActivityTypeVelomobile captures enum value "Velomobile"
	ActivityTypeVelomobile ActivityType = "Velomobile"

	// ActivityTypeVirtualRide captures enum value "VirtualRide"
	ActivityTypeVirtualRide ActivityType = "VirtualRide"

	// ActivityTypeVirtualRun captures enum value "VirtualRun"
	ActivityTypeVirtualRun ActivityType = "VirtualRun"

	// ActivityTypeWalk captures enum value "Walk"
	ActivityTypeWalk ActivityType = "Walk"

	// ActivityTypeWeightTraining captures enum value "WeightTraining"
	ActivityTypeWeightTraining ActivityType = "WeightTraining"

	// ActivityTypeWheelchair captures enum value "Wheelchair"
	ActivityTypeWheelchair ActivityType = "Wheelchair"

	// ActivityTypeWindsurf captures enum value "Windsurf"
	ActivityTypeWindsurf ActivityType = "Windsurf"

	// ActivityTypeWorkout captures enum value "Workout"
	ActivityTypeWorkout ActivityType = "Workout"

	// ActivityTypeYoga captures enum value "Yoga"
	ActivityTypeYoga ActivityType = "Yoga"
)

func NewActivityType

func NewActivityType(value ActivityType) *ActivityType

func (ActivityType) ContextValidate

func (m ActivityType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this activity type based on context it is used

func (ActivityType) Pointer added in v0.0.5

func (m ActivityType) Pointer() *ActivityType

Pointer returns a pointer to a freshly-allocated ActivityType.

func (ActivityType) Validate

func (m ActivityType) Validate(formats strfmt.Registry) error

Validate validates this activity type

type ActivityZone

type ActivityZone struct {

	// custom zones
	CustomZones bool `json:"custom_zones,omitempty"`

	// distribution buckets
	DistributionBuckets TimedZoneDistribution `json:"distribution_buckets,omitempty"`

	// max
	Max int64 `json:"max,omitempty"`

	// points
	Points int64 `json:"points,omitempty"`

	// score
	Score int64 `json:"score,omitempty"`

	// sensor based
	SensorBased bool `json:"sensor_based,omitempty"`

	// type
	// Enum: [heartrate power]
	Type string `json:"type,omitempty"`
}

ActivityZone activity zone

swagger:model activityZone

func (*ActivityZone) ContextValidate

func (m *ActivityZone) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this activity zone based on the context it is used

func (*ActivityZone) MarshalBinary

func (m *ActivityZone) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ActivityZone) UnmarshalBinary

func (m *ActivityZone) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ActivityZone) Validate

func (m *ActivityZone) Validate(formats strfmt.Registry) error

Validate validates this activity zone

type AltitudeStream

type AltitudeStream struct {
	BaseStream

	// The sequence of altitude values for this stream, in meters
	Data []float32 `json:"data"`
}

AltitudeStream altitude stream

swagger:model altitudeStream

func (*AltitudeStream) ContextValidate

func (m *AltitudeStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this altitude stream based on the context it is used

func (*AltitudeStream) MarshalBinary

func (m *AltitudeStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (AltitudeStream) MarshalJSON

func (m AltitudeStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*AltitudeStream) UnmarshalBinary

func (m *AltitudeStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AltitudeStream) UnmarshalJSON

func (m *AltitudeStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*AltitudeStream) Validate

func (m *AltitudeStream) Validate(formats strfmt.Registry) error

Validate validates this altitude stream

type BaseStream

type BaseStream struct {

	// The number of data points in this stream
	OriginalSize int64 `json:"original_size,omitempty"`

	// The level of detail (sampling) in which this stream was returned
	// Enum: [low medium high]
	Resolution string `json:"resolution,omitempty"`

	// The base series used in the case the stream was downsampled
	// Enum: [distance time]
	SeriesType string `json:"series_type,omitempty"`
}

BaseStream base stream

swagger:model baseStream

func (*BaseStream) ContextValidate

func (m *BaseStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this base stream based on context it is used

func (*BaseStream) MarshalBinary

func (m *BaseStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BaseStream) UnmarshalBinary

func (m *BaseStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BaseStream) Validate

func (m *BaseStream) Validate(formats strfmt.Registry) error

Validate validates this base stream

type CadenceStream

type CadenceStream struct {
	BaseStream

	// The sequence of cadence values for this stream, in rotations per minute
	Data []int64 `json:"data"`
}

CadenceStream cadence stream

swagger:model cadenceStream

func (*CadenceStream) ContextValidate

func (m *CadenceStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cadence stream based on the context it is used

func (*CadenceStream) MarshalBinary

func (m *CadenceStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (CadenceStream) MarshalJSON

func (m CadenceStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*CadenceStream) UnmarshalBinary

func (m *CadenceStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CadenceStream) UnmarshalJSON

func (m *CadenceStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*CadenceStream) Validate

func (m *CadenceStream) Validate(formats strfmt.Registry) error

Validate validates this cadence stream

type ClubActivity added in v0.0.9

type ClubActivity struct {

	// athlete
	Athlete *MetaAthlete `json:"athlete,omitempty"`

	// The activity's distance, in meters
	Distance float32 `json:"distance,omitempty"`

	// The activity's elapsed time, in seconds
	ElapsedTime int64 `json:"elapsed_time,omitempty"`

	// The activity's moving time, in seconds
	MovingTime int64 `json:"moving_time,omitempty"`

	// The name of the activity
	Name string `json:"name,omitempty"`

	// sport type
	SportType SportType `json:"sport_type,omitempty"`

	// The activity's total elevation gain.
	TotalElevationGain float32 `json:"total_elevation_gain,omitempty"`

	// type
	Type ActivityType `json:"type,omitempty"`

	// The activity's workout type
	WorkoutType int64 `json:"workout_type,omitempty"`
}

ClubActivity club activity

swagger:model clubActivity

func (*ClubActivity) ContextValidate added in v0.0.9

func (m *ClubActivity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this club activity based on the context it is used

func (*ClubActivity) MarshalBinary added in v0.0.9

func (m *ClubActivity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClubActivity) UnmarshalBinary added in v0.0.9

func (m *ClubActivity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClubActivity) Validate added in v0.0.9

func (m *ClubActivity) Validate(formats strfmt.Registry) error

Validate validates this club activity

type ClubAthlete added in v0.0.9

type ClubAthlete struct {

	// Whether the athlete is a club admin.
	Admin bool `json:"admin,omitempty"`

	// The athlete's first name.
	Firstname string `json:"firstname,omitempty"`

	// The athlete's last initial.
	Lastname string `json:"lastname,omitempty"`

	// The athlete's member status.
	Member string `json:"member,omitempty"`

	// Whether the athlete is club owner.
	Owner bool `json:"owner,omitempty"`

	// Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail"
	ResourceState int64 `json:"resource_state,omitempty"`
}

ClubAthlete club athlete

swagger:model clubAthlete

func (*ClubAthlete) ContextValidate added in v0.0.9

func (m *ClubAthlete) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this club athlete based on context it is used

func (*ClubAthlete) MarshalBinary added in v0.0.9

func (m *ClubAthlete) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClubAthlete) UnmarshalBinary added in v0.0.9

func (m *ClubAthlete) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClubAthlete) Validate added in v0.0.9

func (m *ClubAthlete) Validate(formats strfmt.Registry) error

Validate validates this club athlete

type Comment

type Comment struct {

	// The identifier of the activity this comment is related to
	ActivityID int64 `json:"activity_id,omitempty"`

	// athlete
	Athlete *SummaryAthlete `json:"athlete,omitempty"`

	// The time at which this comment was created.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// The unique identifier of this comment
	ID int64 `json:"id,omitempty"`

	// The content of the comment
	Text string `json:"text,omitempty"`
}

Comment comment

swagger:model comment

func (*Comment) ContextValidate

func (m *Comment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this comment based on the context it is used

func (*Comment) MarshalBinary

func (m *Comment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Comment) UnmarshalBinary

func (m *Comment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Comment) Validate

func (m *Comment) Validate(formats strfmt.Registry) error

Validate validates this comment

type DetailedActivity

type DetailedActivity struct {
	SummaryActivity

	// best efforts
	BestEfforts []*DetailedSegmentEffort `json:"best_efforts"`

	// The number of kilocalories consumed during this activity
	Calories float32 `json:"calories,omitempty"`

	// The description of the activity
	Description string `json:"description,omitempty"`

	// The name of the device used to record the activity
	DeviceName string `json:"device_name,omitempty"`

	// The token used to embed a Strava activity
	EmbedToken string `json:"embed_token,omitempty"`

	// gear
	Gear *SummaryGear `json:"gear,omitempty"`

	// laps
	Laps []*Lap `json:"laps"`

	// photos
	Photos *PhotosSummary `json:"photos,omitempty"`

	// segment efforts
	SegmentEfforts []*DetailedSegmentEffort `json:"segment_efforts"`

	// The splits of this activity in metric units (for runs)
	SplitsMetric []*Split `json:"splits_metric"`

	// The splits of this activity in imperial units (for runs)
	SplitsStandard []*Split `json:"splits_standard"`
}

DetailedActivity detailed activity

swagger:model detailedActivity

func (*DetailedActivity) ContextValidate

func (m *DetailedActivity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this detailed activity based on the context it is used

func (*DetailedActivity) MarshalBinary

func (m *DetailedActivity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DetailedActivity) MarshalJSON

func (m DetailedActivity) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*DetailedActivity) UnmarshalBinary

func (m *DetailedActivity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailedActivity) UnmarshalJSON

func (m *DetailedActivity) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*DetailedActivity) Validate

func (m *DetailedActivity) Validate(formats strfmt.Registry) error

Validate validates this detailed activity

type DetailedAthlete

type DetailedAthlete struct {
	SummaryAthlete

	// The athlete's bikes.
	Bikes []*SummaryGear `json:"bikes"`

	// The athlete's clubs.
	Clubs []*SummaryClub `json:"clubs"`

	// The athlete's follower count.
	FollowerCount int64 `json:"follower_count,omitempty"`

	// The athlete's friend count.
	FriendCount int64 `json:"friend_count,omitempty"`

	// The athlete's FTP (Functional Threshold Power).
	Ftp int64 `json:"ftp,omitempty"`

	// The athlete's preferred unit system.
	// Enum: [feet meters]
	MeasurementPreference string `json:"measurement_preference,omitempty"`

	// The athlete's shoes.
	Shoes []*SummaryGear `json:"shoes"`

	// The athlete's weight.
	Weight float32 `json:"weight,omitempty"`
}

DetailedAthlete detailed athlete

swagger:model detailedAthlete

func (*DetailedAthlete) ContextValidate

func (m *DetailedAthlete) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this detailed athlete based on the context it is used

func (*DetailedAthlete) MarshalBinary

func (m *DetailedAthlete) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DetailedAthlete) MarshalJSON

func (m DetailedAthlete) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*DetailedAthlete) UnmarshalBinary

func (m *DetailedAthlete) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailedAthlete) UnmarshalJSON

func (m *DetailedAthlete) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*DetailedAthlete) Validate

func (m *DetailedAthlete) Validate(formats strfmt.Registry) error

Validate validates this detailed athlete

type DetailedClub

type DetailedClub struct {
	SummaryClub

	// Whether the currently logged-in athlete is an administrator of this club.
	Admin bool `json:"admin,omitempty"`

	// The number of athletes in the club that the logged-in athlete follows.
	FollowingCount int64 `json:"following_count,omitempty"`

	// The membership status of the logged-in athlete.
	// Enum: [member pending]
	Membership string `json:"membership,omitempty"`

	// Whether the currently logged-in athlete is the owner of this club.
	Owner bool `json:"owner,omitempty"`
}

DetailedClub detailed club

swagger:model detailedClub

func (*DetailedClub) ContextValidate

func (m *DetailedClub) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this detailed club based on the context it is used

func (*DetailedClub) MarshalBinary

func (m *DetailedClub) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DetailedClub) MarshalJSON

func (m DetailedClub) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*DetailedClub) UnmarshalBinary

func (m *DetailedClub) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailedClub) UnmarshalJSON

func (m *DetailedClub) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*DetailedClub) Validate

func (m *DetailedClub) Validate(formats strfmt.Registry) error

Validate validates this detailed club

type DetailedGear

type DetailedGear struct {
	SummaryGear

	// The gear's brand name.
	BrandName string `json:"brand_name,omitempty"`

	// The gear's description.
	Description string `json:"description,omitempty"`

	// The gear's frame type (bike only).
	FrameType int64 `json:"frame_type,omitempty"`

	// The gear's model name.
	ModelName string `json:"model_name,omitempty"`
}

DetailedGear detailed gear

swagger:model detailedGear

func (*DetailedGear) ContextValidate

func (m *DetailedGear) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this detailed gear based on the context it is used

func (*DetailedGear) MarshalBinary

func (m *DetailedGear) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DetailedGear) MarshalJSON

func (m DetailedGear) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*DetailedGear) UnmarshalBinary

func (m *DetailedGear) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailedGear) UnmarshalJSON

func (m *DetailedGear) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*DetailedGear) Validate

func (m *DetailedGear) Validate(formats strfmt.Registry) error

Validate validates this detailed gear

type DetailedSegment

type DetailedSegment struct {
	SummarySegment

	// The number of unique athletes who have an effort for this segment
	AthleteCount int64 `json:"athlete_count,omitempty"`

	// The time at which the segment was created.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// The total number of efforts for this segment
	EffortCount int64 `json:"effort_count,omitempty"`

	// Whether this segment is considered hazardous
	Hazardous bool `json:"hazardous,omitempty"`

	// map
	Map *PolylineMap `json:"map,omitempty"`

	// The number of stars for this segment
	StarCount int64 `json:"star_count,omitempty"`

	// The segment's total elevation gain.
	TotalElevationGain float32 `json:"total_elevation_gain,omitempty"`

	// The time at which the segment was last updated.
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

DetailedSegment detailed segment

swagger:model detailedSegment

func (*DetailedSegment) ContextValidate

func (m *DetailedSegment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this detailed segment based on the context it is used

func (*DetailedSegment) MarshalBinary

func (m *DetailedSegment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DetailedSegment) MarshalJSON

func (m DetailedSegment) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*DetailedSegment) UnmarshalBinary

func (m *DetailedSegment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailedSegment) UnmarshalJSON

func (m *DetailedSegment) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*DetailedSegment) Validate

func (m *DetailedSegment) Validate(formats strfmt.Registry) error

Validate validates this detailed segment

type DetailedSegmentEffort

type DetailedSegmentEffort struct {
	SummarySegmentEffort

	// activity
	Activity *MetaActivity `json:"activity,omitempty"`

	// athlete
	Athlete *MetaAthlete `json:"athlete,omitempty"`

	// The effort's average cadence
	AverageCadence float32 `json:"average_cadence,omitempty"`

	// The heart heart rate of the athlete during this effort
	AverageHeartrate float32 `json:"average_heartrate,omitempty"`

	// The average wattage of this effort
	AverageWatts float32 `json:"average_watts,omitempty"`

	// For riding efforts, whether the wattage was reported by a dedicated recording device
	DeviceWatts bool `json:"device_watts,omitempty"`

	// The end index of this effort in its activity's stream
	EndIndex int64 `json:"end_index,omitempty"`

	// Whether this effort should be hidden when viewed within an activity
	Hidden bool `json:"hidden,omitempty"`

	// The rank of the effort on the global leaderboard if it belongs in the top 10 at the time of upload
	// Maximum: 10
	// Minimum: 1
	KomRank int64 `json:"kom_rank,omitempty"`

	// The maximum heart rate of the athlete during this effort
	MaxHeartrate float32 `json:"max_heartrate,omitempty"`

	// The effort's moving time
	MovingTime int64 `json:"moving_time,omitempty"`

	// The name of the segment on which this effort was performed
	Name string `json:"name,omitempty"`

	// The rank of the effort on the athlete's leaderboard if it belongs in the top 3 at the time of upload
	// Maximum: 3
	// Minimum: 1
	PrRank int64 `json:"pr_rank,omitempty"`

	// segment
	Segment *SummarySegment `json:"segment,omitempty"`

	// The start index of this effort in its activity's stream
	StartIndex int64 `json:"start_index,omitempty"`
}

DetailedSegmentEffort detailed segment effort

swagger:model detailedSegmentEffort

func (*DetailedSegmentEffort) ContextValidate

func (m *DetailedSegmentEffort) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this detailed segment effort based on the context it is used

func (*DetailedSegmentEffort) MarshalBinary

func (m *DetailedSegmentEffort) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DetailedSegmentEffort) MarshalJSON

func (m DetailedSegmentEffort) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*DetailedSegmentEffort) UnmarshalBinary

func (m *DetailedSegmentEffort) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailedSegmentEffort) UnmarshalJSON

func (m *DetailedSegmentEffort) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*DetailedSegmentEffort) Validate

func (m *DetailedSegmentEffort) Validate(formats strfmt.Registry) error

Validate validates this detailed segment effort

type DistanceStream

type DistanceStream struct {
	BaseStream

	// The sequence of distance values for this stream, in meters
	Data []float32 `json:"data"`
}

DistanceStream distance stream

swagger:model distanceStream

func (*DistanceStream) ContextValidate

func (m *DistanceStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this distance stream based on the context it is used

func (*DistanceStream) MarshalBinary

func (m *DistanceStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DistanceStream) MarshalJSON

func (m DistanceStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*DistanceStream) UnmarshalBinary

func (m *DistanceStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DistanceStream) UnmarshalJSON

func (m *DistanceStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*DistanceStream) Validate

func (m *DistanceStream) Validate(formats strfmt.Registry) error

Validate validates this distance stream

type Error

type Error struct {

	// The code associated with this error.
	Code string `json:"code,omitempty"`

	// The specific field or aspect of the resource associated with this error.
	Field string `json:"field,omitempty"`

	// The type of resource associated with this error.
	Resource string `json:"resource,omitempty"`
}

Error error

swagger:model error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ExplorerResponse

type ExplorerResponse struct {

	// The set of segments matching an explorer request
	Segments []*ExplorerSegment `json:"segments"`
}

ExplorerResponse explorer response

swagger:model explorerResponse

func (*ExplorerResponse) ContextValidate

func (m *ExplorerResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this explorer response based on the context it is used

func (*ExplorerResponse) MarshalBinary

func (m *ExplorerResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExplorerResponse) UnmarshalBinary

func (m *ExplorerResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExplorerResponse) Validate

func (m *ExplorerResponse) Validate(formats strfmt.Registry) error

Validate validates this explorer response

type ExplorerSegment

type ExplorerSegment struct {

	// The segment's average grade, in percents
	AvgGrade float32 `json:"avg_grade,omitempty"`

	// The category of the climb [0, 5]. Higher is harder ie. 5 is Hors catégorie, 0 is uncategorized in climb_category. If climb_category = 5, climb_category_desc = HC. If climb_category = 2, climb_category_desc = 3.
	// Maximum: 5
	// Minimum: 0
	ClimbCategory *int64 `json:"climb_category,omitempty"`

	// The description for the category of the climb
	// Enum: [NC 4 3 2 1 HC]
	ClimbCategoryDesc string `json:"climb_category_desc,omitempty"`

	// The segment's distance, in meters
	Distance float32 `json:"distance,omitempty"`

	// The segments's evelation difference, in meters
	ElevDifference float32 `json:"elev_difference,omitempty"`

	// end latlng
	EndLatlng LatLng `json:"end_latlng,omitempty"`

	// The unique identifier of this segment
	ID int64 `json:"id,omitempty"`

	// The name of this segment
	Name string `json:"name,omitempty"`

	// The polyline of the segment
	Points string `json:"points,omitempty"`

	// start latlng
	StartLatlng LatLng `json:"start_latlng,omitempty"`
}

ExplorerSegment explorer segment

swagger:model explorerSegment

func (*ExplorerSegment) ContextValidate

func (m *ExplorerSegment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this explorer segment based on the context it is used

func (*ExplorerSegment) MarshalBinary

func (m *ExplorerSegment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExplorerSegment) UnmarshalBinary

func (m *ExplorerSegment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExplorerSegment) Validate

func (m *ExplorerSegment) Validate(formats strfmt.Registry) error

Validate validates this explorer segment

type Fault

type Fault struct {

	// The set of specific errors associated with this fault, if any.
	Errors []*Error `json:"errors"`

	// The message of the fault.
	Message string `json:"message,omitempty"`
}

Fault Encapsulates the errors that may be returned from the API.

swagger:model fault

func (*Fault) ContextValidate

func (m *Fault) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this fault based on the context it is used

func (*Fault) MarshalBinary

func (m *Fault) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Fault) UnmarshalBinary

func (m *Fault) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Fault) Validate

func (m *Fault) Validate(formats strfmt.Registry) error

Validate validates this fault

type HeartRateZoneRanges

type HeartRateZoneRanges struct {

	// Whether the athlete has set their own custom heart rate zones
	CustomZones bool `json:"custom_zones,omitempty"`

	// zones
	Zones ZoneRanges `json:"zones,omitempty"`
}

HeartRateZoneRanges heart rate zone ranges

swagger:model heartRateZoneRanges

func (*HeartRateZoneRanges) ContextValidate

func (m *HeartRateZoneRanges) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this heart rate zone ranges based on the context it is used

func (*HeartRateZoneRanges) MarshalBinary

func (m *HeartRateZoneRanges) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HeartRateZoneRanges) UnmarshalBinary

func (m *HeartRateZoneRanges) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HeartRateZoneRanges) Validate

func (m *HeartRateZoneRanges) Validate(formats strfmt.Registry) error

Validate validates this heart rate zone ranges

type HeartrateStream

type HeartrateStream struct {
	BaseStream

	// The sequence of heart rate values for this stream, in beats per minute
	Data []int64 `json:"data"`
}

HeartrateStream heartrate stream

swagger:model heartrateStream

func (*HeartrateStream) ContextValidate

func (m *HeartrateStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this heartrate stream based on the context it is used

func (*HeartrateStream) MarshalBinary

func (m *HeartrateStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (HeartrateStream) MarshalJSON

func (m HeartrateStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*HeartrateStream) UnmarshalBinary

func (m *HeartrateStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HeartrateStream) UnmarshalJSON

func (m *HeartrateStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*HeartrateStream) Validate

func (m *HeartrateStream) Validate(formats strfmt.Registry) error

Validate validates this heartrate stream

type Lap

type Lap struct {

	// activity
	Activity *MetaActivity `json:"activity,omitempty"`

	// athlete
	Athlete *MetaAthlete `json:"athlete,omitempty"`

	// The lap's average cadence
	AverageCadence float32 `json:"average_cadence,omitempty"`

	// The lap's average speed
	AverageSpeed float32 `json:"average_speed,omitempty"`

	// The lap's distance, in meters
	Distance float32 `json:"distance,omitempty"`

	// The lap's elapsed time, in seconds
	ElapsedTime int64 `json:"elapsed_time,omitempty"`

	// The end index of this effort in its activity's stream
	EndIndex int64 `json:"end_index,omitempty"`

	// The unique identifier of this lap
	ID int64 `json:"id,omitempty"`

	// The index of this lap in the activity it belongs to
	LapIndex int64 `json:"lap_index,omitempty"`

	// The maximum speed of this lat, in meters per second
	MaxSpeed float32 `json:"max_speed,omitempty"`

	// The lap's moving time, in seconds
	MovingTime int64 `json:"moving_time,omitempty"`

	// The name of the lap
	Name string `json:"name,omitempty"`

	// The athlete's pace zone during this lap
	PaceZone int64 `json:"pace_zone,omitempty"`

	// split
	Split int64 `json:"split,omitempty"`

	// The time at which the lap was started.
	// Format: date-time
	StartDate strfmt.DateTime `json:"start_date,omitempty"`

	// The time at which the lap was started in the local timezone.
	// Format: date-time
	StartDateLocal strfmt.DateTime `json:"start_date_local,omitempty"`

	// The start index of this effort in its activity's stream
	StartIndex int64 `json:"start_index,omitempty"`

	// The elevation gain of this lap, in meters
	TotalElevationGain float32 `json:"total_elevation_gain,omitempty"`
}

Lap lap

swagger:model lap

func (*Lap) ContextValidate

func (m *Lap) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this lap based on the context it is used

func (*Lap) MarshalBinary

func (m *Lap) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Lap) UnmarshalBinary

func (m *Lap) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Lap) Validate

func (m *Lap) Validate(formats strfmt.Registry) error

Validate validates this lap

type LatLng

type LatLng []float32

LatLng A pair of latitude/longitude coordinates, represented as an array of 2 floating point numbers.

swagger:model latLng

func (LatLng) ContextValidate

func (m LatLng) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this lat lng based on context it is used

func (LatLng) Validate

func (m LatLng) Validate(formats strfmt.Registry) error

Validate validates this lat lng

type LatLngStream

type LatLngStream struct {
	BaseStream

	// The sequence of lat/long values for this stream
	Data []LatLng `json:"data"`
}

LatLngStream lat lng stream

swagger:model latLngStream

func (*LatLngStream) ContextValidate

func (m *LatLngStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this lat lng stream based on the context it is used

func (*LatLngStream) MarshalBinary

func (m *LatLngStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (LatLngStream) MarshalJSON

func (m LatLngStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*LatLngStream) UnmarshalBinary

func (m *LatLngStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LatLngStream) UnmarshalJSON

func (m *LatLngStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*LatLngStream) Validate

func (m *LatLngStream) Validate(formats strfmt.Registry) error

Validate validates this lat lng stream

type MetaActivity

type MetaActivity struct {

	// The unique identifier of the activity
	ID int64 `json:"id,omitempty"`
}

MetaActivity meta activity

swagger:model metaActivity

func (*MetaActivity) ContextValidate

func (m *MetaActivity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this meta activity based on context it is used

func (*MetaActivity) MarshalBinary

func (m *MetaActivity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MetaActivity) UnmarshalBinary

func (m *MetaActivity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MetaActivity) Validate

func (m *MetaActivity) Validate(formats strfmt.Registry) error

Validate validates this meta activity

type MetaAthlete

type MetaAthlete struct {

	// The unique identifier of the athlete
	ID int64 `json:"id,omitempty"`
}

MetaAthlete meta athlete

swagger:model metaAthlete

func (*MetaAthlete) ContextValidate

func (m *MetaAthlete) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this meta athlete based on context it is used

func (*MetaAthlete) MarshalBinary

func (m *MetaAthlete) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MetaAthlete) UnmarshalBinary

func (m *MetaAthlete) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MetaAthlete) Validate

func (m *MetaAthlete) Validate(formats strfmt.Registry) error

Validate validates this meta athlete

type MetaClub

type MetaClub struct {

	// The club's unique identifier.
	ID int64 `json:"id,omitempty"`

	// The club's name.
	Name string `json:"name,omitempty"`

	// Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail"
	ResourceState int64 `json:"resource_state,omitempty"`
}

MetaClub meta club

swagger:model metaClub

func (*MetaClub) ContextValidate

func (m *MetaClub) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this meta club based on context it is used

func (*MetaClub) MarshalBinary

func (m *MetaClub) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MetaClub) UnmarshalBinary

func (m *MetaClub) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MetaClub) Validate

func (m *MetaClub) Validate(formats strfmt.Registry) error

Validate validates this meta club

type MovingStream

type MovingStream struct {
	BaseStream

	// The sequence of moving values for this stream, as boolean values
	Data []bool `json:"data"`
}

MovingStream moving stream

swagger:model movingStream

func (*MovingStream) ContextValidate

func (m *MovingStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this moving stream based on the context it is used

func (*MovingStream) MarshalBinary

func (m *MovingStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (MovingStream) MarshalJSON

func (m MovingStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*MovingStream) UnmarshalBinary

func (m *MovingStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MovingStream) UnmarshalJSON

func (m *MovingStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*MovingStream) Validate

func (m *MovingStream) Validate(formats strfmt.Registry) error

Validate validates this moving stream

type PhotosSummary

type PhotosSummary struct {

	// The number of photos
	Count int64 `json:"count,omitempty"`

	// primary
	Primary *PhotosSummaryPrimary `json:"primary,omitempty"`
}

PhotosSummary photos summary

swagger:model photosSummary

func (*PhotosSummary) ContextValidate

func (m *PhotosSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this photos summary based on the context it is used

func (*PhotosSummary) MarshalBinary

func (m *PhotosSummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PhotosSummary) UnmarshalBinary

func (m *PhotosSummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PhotosSummary) Validate

func (m *PhotosSummary) Validate(formats strfmt.Registry) error

Validate validates this photos summary

type PhotosSummaryPrimary

type PhotosSummaryPrimary struct {

	// id
	ID int64 `json:"id,omitempty"`

	// source
	Source int64 `json:"source,omitempty"`

	// unique id
	UniqueID string `json:"unique_id,omitempty"`

	// urls
	Urls map[string]string `json:"urls,omitempty"`
}

PhotosSummaryPrimary photos summary primary

swagger:model PhotosSummaryPrimary

func (*PhotosSummaryPrimary) ContextValidate

func (m *PhotosSummaryPrimary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this photos summary primary based on context it is used

func (*PhotosSummaryPrimary) MarshalBinary

func (m *PhotosSummaryPrimary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PhotosSummaryPrimary) UnmarshalBinary

func (m *PhotosSummaryPrimary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PhotosSummaryPrimary) Validate

func (m *PhotosSummaryPrimary) Validate(formats strfmt.Registry) error

Validate validates this photos summary primary

type PolylineMap

type PolylineMap struct {

	// The identifier of the map
	ID string `json:"id,omitempty"`

	// The polyline of the map, only returned on detailed representation of an object
	Polyline string `json:"polyline,omitempty"`

	// The summary polyline of the map
	SummaryPolyline string `json:"summary_polyline,omitempty"`
}

PolylineMap polyline map

swagger:model polylineMap

func (*PolylineMap) ContextValidate

func (m *PolylineMap) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this polyline map based on context it is used

func (*PolylineMap) MarshalBinary

func (m *PolylineMap) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PolylineMap) UnmarshalBinary

func (m *PolylineMap) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PolylineMap) Validate

func (m *PolylineMap) Validate(formats strfmt.Registry) error

Validate validates this polyline map

type PowerStream

type PowerStream struct {
	BaseStream

	// The sequence of power values for this stream, in watts
	Data []int64 `json:"data"`
}

PowerStream power stream

swagger:model powerStream

func (*PowerStream) ContextValidate

func (m *PowerStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this power stream based on the context it is used

func (*PowerStream) MarshalBinary

func (m *PowerStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (PowerStream) MarshalJSON

func (m PowerStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*PowerStream) UnmarshalBinary

func (m *PowerStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PowerStream) UnmarshalJSON

func (m *PowerStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*PowerStream) Validate

func (m *PowerStream) Validate(formats strfmt.Registry) error

Validate validates this power stream

type PowerZoneRanges

type PowerZoneRanges struct {

	// zones
	Zones ZoneRanges `json:"zones,omitempty"`
}

PowerZoneRanges power zone ranges

swagger:model powerZoneRanges

func (*PowerZoneRanges) ContextValidate

func (m *PowerZoneRanges) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this power zone ranges based on the context it is used

func (*PowerZoneRanges) MarshalBinary

func (m *PowerZoneRanges) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PowerZoneRanges) UnmarshalBinary

func (m *PowerZoneRanges) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PowerZoneRanges) Validate

func (m *PowerZoneRanges) Validate(formats strfmt.Registry) error

Validate validates this power zone ranges

type Route

type Route struct {

	// athlete
	Athlete *SummaryAthlete `json:"athlete,omitempty"`

	// The time at which the route was created
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// The description of the route
	Description string `json:"description,omitempty"`

	// The route's distance, in meters
	Distance float32 `json:"distance,omitempty"`

	// The route's elevation gain.
	ElevationGain float32 `json:"elevation_gain,omitempty"`

	// Estimated time in seconds for the authenticated athlete to complete route
	EstimatedMovingTime int64 `json:"estimated_moving_time,omitempty"`

	// The unique identifier of this route
	ID int64 `json:"id,omitempty"`

	// The unique identifier of the route in string format
	IDStr string `json:"id_str,omitempty"`

	// map
	Map *PolylineMap `json:"map,omitempty"`

	// The name of this route
	Name string `json:"name,omitempty"`

	// Whether this route is private
	Private bool `json:"private,omitempty"`

	// The segments traversed by this route
	Segments []*SummarySegment `json:"segments"`

	// Whether this route is starred by the logged-in athlete
	Starred bool `json:"starred,omitempty"`

	// This route's sub-type (1 for road, 2 for mountain bike, 3 for cross, 4 for trail, 5 for mixed)
	SubType int64 `json:"sub_type,omitempty"`

	// An epoch timestamp of when the route was created
	Timestamp int64 `json:"timestamp,omitempty"`

	// This route's type (1 for ride, 2 for runs)
	Type int64 `json:"type,omitempty"`

	// The time at which the route was last updated
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

Route route

swagger:model route

func (*Route) ContextValidate

func (m *Route) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this route based on the context it is used

func (*Route) MarshalBinary

func (m *Route) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Route) UnmarshalBinary

func (m *Route) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Route) Validate

func (m *Route) Validate(formats strfmt.Registry) error

Validate validates this route

type SmoothGradeStream

type SmoothGradeStream struct {
	BaseStream

	// The sequence of grade values for this stream, as percents of a grade
	Data []float32 `json:"data"`
}

SmoothGradeStream smooth grade stream

swagger:model smoothGradeStream

func (*SmoothGradeStream) ContextValidate

func (m *SmoothGradeStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this smooth grade stream based on the context it is used

func (*SmoothGradeStream) MarshalBinary

func (m *SmoothGradeStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (SmoothGradeStream) MarshalJSON

func (m SmoothGradeStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SmoothGradeStream) UnmarshalBinary

func (m *SmoothGradeStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SmoothGradeStream) UnmarshalJSON

func (m *SmoothGradeStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SmoothGradeStream) Validate

func (m *SmoothGradeStream) Validate(formats strfmt.Registry) error

Validate validates this smooth grade stream

type SmoothVelocityStream

type SmoothVelocityStream struct {
	BaseStream

	// The sequence of velocity values for this stream, in meters per second
	Data []float32 `json:"data"`
}

SmoothVelocityStream smooth velocity stream

swagger:model smoothVelocityStream

func (*SmoothVelocityStream) ContextValidate

func (m *SmoothVelocityStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this smooth velocity stream based on the context it is used

func (*SmoothVelocityStream) MarshalBinary

func (m *SmoothVelocityStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (SmoothVelocityStream) MarshalJSON

func (m SmoothVelocityStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SmoothVelocityStream) UnmarshalBinary

func (m *SmoothVelocityStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SmoothVelocityStream) UnmarshalJSON

func (m *SmoothVelocityStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SmoothVelocityStream) Validate

func (m *SmoothVelocityStream) Validate(formats strfmt.Registry) error

Validate validates this smooth velocity stream

type Split

type Split struct {

	// The average speed of this split, in meters per second
	AverageSpeed float32 `json:"average_speed,omitempty"`

	// The distance of this split, in meters
	Distance float32 `json:"distance,omitempty"`

	// The elapsed time of this split, in seconds
	ElapsedTime int64 `json:"elapsed_time,omitempty"`

	// The elevation difference of this split, in meters
	ElevationDifference float32 `json:"elevation_difference,omitempty"`

	// The moving time of this split, in seconds
	MovingTime int64 `json:"moving_time,omitempty"`

	// The pacing zone of this split
	PaceZone int64 `json:"pace_zone,omitempty"`

	// N/A
	Split int64 `json:"split,omitempty"`
}

Split split

swagger:model split

func (*Split) ContextValidate

func (m *Split) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this split based on context it is used

func (*Split) MarshalBinary

func (m *Split) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Split) UnmarshalBinary

func (m *Split) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Split) Validate

func (m *Split) Validate(formats strfmt.Registry) error

Validate validates this split

type SportType added in v0.0.5

type SportType string

SportType An enumeration of the sport types an activity may have. Distinct from ActivityType in that it has new types (e.g. MountainBikeRide)

swagger:model sportType

const (

	// SportTypeAlpineSki captures enum value "AlpineSki"
	SportTypeAlpineSki SportType = "AlpineSki"

	// SportTypeBackcountrySki captures enum value "BackcountrySki"
	SportTypeBackcountrySki SportType = "BackcountrySki"

	// SportTypeBadminton captures enum value "Badminton"
	SportTypeBadminton SportType = "Badminton"

	// SportTypeCanoeing captures enum value "Canoeing"
	SportTypeCanoeing SportType = "Canoeing"

	// SportTypeCrossfit captures enum value "Crossfit"
	SportTypeCrossfit SportType = "Crossfit"

	// SportTypeEBikeRide captures enum value "EBikeRide"
	SportTypeEBikeRide SportType = "EBikeRide"

	// SportTypeElliptical captures enum value "Elliptical"
	SportTypeElliptical SportType = "Elliptical"

	// SportTypeEMountainBikeRide captures enum value "EMountainBikeRide"
	SportTypeEMountainBikeRide SportType = "EMountainBikeRide"

	// SportTypeGolf captures enum value "Golf"
	SportTypeGolf SportType = "Golf"

	// SportTypeGravelRide captures enum value "GravelRide"
	SportTypeGravelRide SportType = "GravelRide"

	// SportTypeHandcycle captures enum value "Handcycle"
	SportTypeHandcycle SportType = "Handcycle"

	// SportTypeHighIntensityIntervalTraining captures enum value "HighIntensityIntervalTraining"
	SportTypeHighIntensityIntervalTraining SportType = "HighIntensityIntervalTraining"

	// SportTypeHike captures enum value "Hike"
	SportTypeHike SportType = "Hike"

	// SportTypeIceSkate captures enum value "IceSkate"
	SportTypeIceSkate SportType = "IceSkate"

	// SportTypeInlineSkate captures enum value "InlineSkate"
	SportTypeInlineSkate SportType = "InlineSkate"

	// SportTypeKayaking captures enum value "Kayaking"
	SportTypeKayaking SportType = "Kayaking"

	// SportTypeKitesurf captures enum value "Kitesurf"
	SportTypeKitesurf SportType = "Kitesurf"

	// SportTypeMountainBikeRide captures enum value "MountainBikeRide"
	SportTypeMountainBikeRide SportType = "MountainBikeRide"

	// SportTypeNordicSki captures enum value "NordicSki"
	SportTypeNordicSki SportType = "NordicSki"

	// SportTypePickleball captures enum value "Pickleball"
	SportTypePickleball SportType = "Pickleball"

	// SportTypePilates captures enum value "Pilates"
	SportTypePilates SportType = "Pilates"

	// SportTypeRacquetball captures enum value "Racquetball"
	SportTypeRacquetball SportType = "Racquetball"

	// SportTypeRide captures enum value "Ride"
	SportTypeRide SportType = "Ride"

	// SportTypeRockClimbing captures enum value "RockClimbing"
	SportTypeRockClimbing SportType = "RockClimbing"

	// SportTypeRollerSki captures enum value "RollerSki"
	SportTypeRollerSki SportType = "RollerSki"

	// SportTypeRowing captures enum value "Rowing"
	SportTypeRowing SportType = "Rowing"

	// SportTypeRun captures enum value "Run"
	SportTypeRun SportType = "Run"

	// SportTypeSail captures enum value "Sail"
	SportTypeSail SportType = "Sail"

	// SportTypeSkateboard captures enum value "Skateboard"
	SportTypeSkateboard SportType = "Skateboard"

	// SportTypeSnowboard captures enum value "Snowboard"
	SportTypeSnowboard SportType = "Snowboard"

	// SportTypeSnowshoe captures enum value "Snowshoe"
	SportTypeSnowshoe SportType = "Snowshoe"

	// SportTypeSoccer captures enum value "Soccer"
	SportTypeSoccer SportType = "Soccer"

	// SportTypeSquash captures enum value "Squash"
	SportTypeSquash SportType = "Squash"

	// SportTypeStairStepper captures enum value "StairStepper"
	SportTypeStairStepper SportType = "StairStepper"

	// SportTypeStandUpPaddling captures enum value "StandUpPaddling"
	SportTypeStandUpPaddling SportType = "StandUpPaddling"

	// SportTypeSurfing captures enum value "Surfing"
	SportTypeSurfing SportType = "Surfing"

	// SportTypeSwim captures enum value "Swim"
	SportTypeSwim SportType = "Swim"

	// SportTypeTableTennis captures enum value "TableTennis"
	SportTypeTableTennis SportType = "TableTennis"

	// SportTypeTennis captures enum value "Tennis"
	SportTypeTennis SportType = "Tennis"

	// SportTypeTrailRun captures enum value "TrailRun"
	SportTypeTrailRun SportType = "TrailRun"

	// SportTypeVelomobile captures enum value "Velomobile"
	SportTypeVelomobile SportType = "Velomobile"

	// SportTypeVirtualRide captures enum value "VirtualRide"
	SportTypeVirtualRide SportType = "VirtualRide"

	// SportTypeVirtualRow captures enum value "VirtualRow"
	SportTypeVirtualRow SportType = "VirtualRow"

	// SportTypeVirtualRun captures enum value "VirtualRun"
	SportTypeVirtualRun SportType = "VirtualRun"

	// SportTypeWalk captures enum value "Walk"
	SportTypeWalk SportType = "Walk"

	// SportTypeWeightTraining captures enum value "WeightTraining"
	SportTypeWeightTraining SportType = "WeightTraining"

	// SportTypeWheelchair captures enum value "Wheelchair"
	SportTypeWheelchair SportType = "Wheelchair"

	// SportTypeWindsurf captures enum value "Windsurf"
	SportTypeWindsurf SportType = "Windsurf"

	// SportTypeWorkout captures enum value "Workout"
	SportTypeWorkout SportType = "Workout"

	// SportTypeYoga captures enum value "Yoga"
	SportTypeYoga SportType = "Yoga"
)

func NewSportType added in v0.0.5

func NewSportType(value SportType) *SportType

func (SportType) ContextValidate added in v0.0.5

func (m SportType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sport type based on context it is used

func (SportType) Pointer added in v0.0.5

func (m SportType) Pointer() *SportType

Pointer returns a pointer to a freshly-allocated SportType.

func (SportType) Validate added in v0.0.5

func (m SportType) Validate(formats strfmt.Registry) error

Validate validates this sport type

type StreamSet

type StreamSet struct {

	// altitude
	Altitude *AltitudeStream `json:"altitude,omitempty"`

	// cadence
	Cadence *CadenceStream `json:"cadence,omitempty"`

	// distance
	Distance *DistanceStream `json:"distance,omitempty"`

	// grade smooth
	GradeSmooth *SmoothGradeStream `json:"grade_smooth,omitempty"`

	// heartrate
	Heartrate *HeartrateStream `json:"heartrate,omitempty"`

	// latlng
	Latlng *LatLngStream `json:"latlng,omitempty"`

	// moving
	Moving *MovingStream `json:"moving,omitempty"`

	// temp
	Temp *TemperatureStream `json:"temp,omitempty"`

	// time
	Time *TimeStream `json:"time,omitempty"`

	// velocity smooth
	VelocitySmooth *SmoothVelocityStream `json:"velocity_smooth,omitempty"`

	// watts
	Watts *PowerStream `json:"watts,omitempty"`
}

StreamSet stream set

swagger:model streamSet

func (*StreamSet) ContextValidate

func (m *StreamSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stream set based on the context it is used

func (*StreamSet) MarshalBinary

func (m *StreamSet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StreamSet) UnmarshalBinary

func (m *StreamSet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StreamSet) Validate

func (m *StreamSet) Validate(formats strfmt.Registry) error

Validate validates this stream set

type SummaryActivity

type SummaryActivity struct {
	MetaActivity

	// The number of achievements gained during this activity
	AchievementCount int64 `json:"achievement_count,omitempty"`

	// athlete
	Athlete *MetaAthlete `json:"athlete,omitempty"`

	// The number of athletes for taking part in a group activity
	// Minimum: 1
	AthleteCount int64 `json:"athlete_count,omitempty"`

	// The activity's average speed, in meters per second
	AverageSpeed float32 `json:"average_speed,omitempty"`

	// Average power output in watts during this activity. Rides only
	AverageWatts float32 `json:"average_watts,omitempty"`

	// The number of comments for this activity
	CommentCount int64 `json:"comment_count,omitempty"`

	// Whether this activity is a commute
	Commute bool `json:"commute,omitempty"`

	// Whether the watts are from a power meter, false if estimated
	DeviceWatts bool `json:"device_watts,omitempty"`

	// The activity's distance, in meters
	Distance float32 `json:"distance,omitempty"`

	// The activity's elapsed time, in seconds
	ElapsedTime int64 `json:"elapsed_time,omitempty"`

	// The activity's highest elevation, in meters
	ElevHigh float32 `json:"elev_high,omitempty"`

	// The activity's lowest elevation, in meters
	ElevLow float32 `json:"elev_low,omitempty"`

	// end latlng
	EndLatlng LatLng `json:"end_latlng,omitempty"`

	// The identifier provided at upload time
	ExternalID string `json:"external_id,omitempty"`

	// Whether this activity is flagged
	Flagged bool `json:"flagged,omitempty"`

	// The id of the gear for the activity
	GearID string `json:"gear_id,omitempty"`

	// Whether the logged-in athlete has kudoed this activity
	HasKudoed bool `json:"has_kudoed,omitempty"`

	// Whether the activity is muted
	HideFromHome bool `json:"hide_from_home,omitempty"`

	// The total work done in kilojoules during this activity. Rides only
	Kilojoules float32 `json:"kilojoules,omitempty"`

	// The number of kudos given for this activity
	KudosCount int64 `json:"kudos_count,omitempty"`

	// Whether this activity was created manually
	Manual bool `json:"manual,omitempty"`

	// map
	Map *PolylineMap `json:"map,omitempty"`

	// The activity's max speed, in meters per second
	MaxSpeed float32 `json:"max_speed,omitempty"`

	// Rides with power meter data only
	MaxWatts int64 `json:"max_watts,omitempty"`

	// The activity's moving time, in seconds
	MovingTime int64 `json:"moving_time,omitempty"`

	// The name of the activity
	Name string `json:"name,omitempty"`

	// The number of Instagram photos for this activity
	PhotoCount int64 `json:"photo_count,omitempty"`

	// Whether this activity is private
	Private bool `json:"private,omitempty"`

	// sport type
	SportType SportType `json:"sport_type,omitempty"`

	// The time at which the activity was started.
	// Format: date-time
	StartDate strfmt.DateTime `json:"start_date,omitempty"`

	// The time at which the activity was started in the local timezone.
	// Format: date-time
	StartDateLocal strfmt.DateTime `json:"start_date_local,omitempty"`

	// start latlng
	StartLatlng LatLng `json:"start_latlng,omitempty"`

	// The timezone of the activity
	Timezone string `json:"timezone,omitempty"`

	// The activity's total elevation gain.
	TotalElevationGain float32 `json:"total_elevation_gain,omitempty"`

	// The number of Instagram and Strava photos for this activity
	TotalPhotoCount int64 `json:"total_photo_count,omitempty"`

	// Whether this activity was recorded on a training machine
	Trainer bool `json:"trainer,omitempty"`

	// type
	Type ActivityType `json:"type,omitempty"`

	// The identifier of the upload that resulted in this activity
	UploadID int64 `json:"upload_id,omitempty"`

	// The unique identifier of the upload in string format
	UploadIDStr string `json:"upload_id_str,omitempty"`

	// Similar to Normalized Power. Rides with power meter data only
	WeightedAverageWatts int64 `json:"weighted_average_watts,omitempty"`

	// The activity's workout type
	WorkoutType int64 `json:"workout_type,omitempty"`
}

SummaryActivity summary activity

swagger:model summaryActivity

func (*SummaryActivity) ContextValidate

func (m *SummaryActivity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this summary activity based on the context it is used

func (*SummaryActivity) MarshalBinary

func (m *SummaryActivity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (SummaryActivity) MarshalJSON

func (m SummaryActivity) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SummaryActivity) UnmarshalBinary

func (m *SummaryActivity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SummaryActivity) UnmarshalJSON

func (m *SummaryActivity) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SummaryActivity) Validate

func (m *SummaryActivity) Validate(formats strfmt.Registry) error

Validate validates this summary activity

type SummaryAthlete

type SummaryAthlete struct {
	MetaAthlete

	// The athlete's city.
	City string `json:"city,omitempty"`

	// The athlete's country.
	Country string `json:"country,omitempty"`

	// The time at which the athlete was created.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// The athlete's first name.
	Firstname string `json:"firstname,omitempty"`

	// The athlete's last name.
	Lastname string `json:"lastname,omitempty"`

	// Deprecated.  Use summit field instead. Whether the athlete has any Summit subscription.
	Premium bool `json:"premium,omitempty"`

	// URL to a 124x124 pixel profile picture.
	Profile string `json:"profile,omitempty"`

	// URL to a 62x62 pixel profile picture.
	ProfileMedium string `json:"profile_medium,omitempty"`

	// Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail"
	ResourceState int64 `json:"resource_state,omitempty"`

	// The athlete's sex.
	// Enum: [M F]
	Sex string `json:"sex,omitempty"`

	// The athlete's state or geographical region.
	State string `json:"state,omitempty"`

	// Whether the athlete has any Summit subscription.
	Summit bool `json:"summit,omitempty"`

	// The time at which the athlete was last updated.
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

SummaryAthlete summary athlete

swagger:model summaryAthlete

func (*SummaryAthlete) ContextValidate

func (m *SummaryAthlete) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this summary athlete based on the context it is used

func (*SummaryAthlete) MarshalBinary

func (m *SummaryAthlete) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (SummaryAthlete) MarshalJSON

func (m SummaryAthlete) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SummaryAthlete) UnmarshalBinary

func (m *SummaryAthlete) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SummaryAthlete) UnmarshalJSON

func (m *SummaryAthlete) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SummaryAthlete) Validate

func (m *SummaryAthlete) Validate(formats strfmt.Registry) error

Validate validates this summary athlete

type SummaryClub

type SummaryClub struct {
	MetaClub

	// The activity types that count for a club. This takes precedence over sport_type.
	ActivityTypes []ActivityType `json:"activity_types"`

	// The club's city.
	City string `json:"city,omitempty"`

	// The club's country.
	Country string `json:"country,omitempty"`

	// URL to a ~1185x580 pixel cover photo.
	CoverPhoto string `json:"cover_photo,omitempty"`

	// URL to a ~360x176  pixel cover photo.
	CoverPhotoSmall string `json:"cover_photo_small,omitempty"`

	// Whether the club is featured or not.
	Featured bool `json:"featured,omitempty"`

	// The club's member count.
	MemberCount int64 `json:"member_count,omitempty"`

	// Whether the club is private.
	Private bool `json:"private,omitempty"`

	// URL to a 60x60 pixel profile picture.
	ProfileMedium string `json:"profile_medium,omitempty"`

	// Deprecated. Prefer to use activity_types.
	// Enum: [cycling running triathlon other]
	SportType string `json:"sport_type,omitempty"`

	// The club's state or geographical region.
	State string `json:"state,omitempty"`

	// The club's vanity URL.
	URL string `json:"url,omitempty"`

	// Whether the club is verified or not.
	Verified bool `json:"verified,omitempty"`
}

SummaryClub summary club

swagger:model summaryClub

func (*SummaryClub) ContextValidate

func (m *SummaryClub) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this summary club based on the context it is used

func (*SummaryClub) MarshalBinary

func (m *SummaryClub) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (SummaryClub) MarshalJSON

func (m SummaryClub) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SummaryClub) UnmarshalBinary

func (m *SummaryClub) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SummaryClub) UnmarshalJSON

func (m *SummaryClub) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SummaryClub) Validate

func (m *SummaryClub) Validate(formats strfmt.Registry) error

Validate validates this summary club

type SummaryGear

type SummaryGear struct {

	// The distance logged with this gear.
	Distance float32 `json:"distance,omitempty"`

	// The gear's unique identifier.
	ID string `json:"id,omitempty"`

	// The gear's name.
	Name string `json:"name,omitempty"`

	// Whether this gear's is the owner's default one.
	Primary bool `json:"primary,omitempty"`

	// Resource state, indicates level of detail. Possible values: 2 -> "summary", 3 -> "detail"
	ResourceState int64 `json:"resource_state,omitempty"`
}

SummaryGear summary gear

swagger:model summaryGear

func (*SummaryGear) ContextValidate

func (m *SummaryGear) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this summary gear based on context it is used

func (*SummaryGear) MarshalBinary

func (m *SummaryGear) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SummaryGear) UnmarshalBinary

func (m *SummaryGear) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SummaryGear) Validate

func (m *SummaryGear) Validate(formats strfmt.Registry) error

Validate validates this summary gear

type SummaryPRSegmentEffort

type SummaryPRSegmentEffort struct {

	// Number of efforts by the authenticated athlete on this segment.
	EffortCount int64 `json:"effort_count,omitempty"`

	// The unique identifier of the activity related to the PR effort.
	PrActivityID int64 `json:"pr_activity_id,omitempty"`

	// The time at which the PR effort was started.
	// Format: date-time
	PrDate strfmt.DateTime `json:"pr_date,omitempty"`

	// The elapsed time ot the PR effort.
	PrElapsedTime int64 `json:"pr_elapsed_time,omitempty"`
}

SummaryPRSegmentEffort summary p r segment effort

swagger:model summaryPRSegmentEffort

func (*SummaryPRSegmentEffort) ContextValidate

func (m *SummaryPRSegmentEffort) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this summary p r segment effort based on context it is used

func (*SummaryPRSegmentEffort) MarshalBinary

func (m *SummaryPRSegmentEffort) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SummaryPRSegmentEffort) UnmarshalBinary

func (m *SummaryPRSegmentEffort) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SummaryPRSegmentEffort) Validate

func (m *SummaryPRSegmentEffort) Validate(formats strfmt.Registry) error

Validate validates this summary p r segment effort

type SummarySegment

type SummarySegment struct {

	// activity type
	// Enum: [Ride Run]
	ActivityType string `json:"activity_type,omitempty"`

	// athlete pr effort
	AthletePrEffort *SummaryPRSegmentEffort `json:"athlete_pr_effort,omitempty"`

	// athlete segment stats
	AthleteSegmentStats *SummarySegmentEffort `json:"athlete_segment_stats,omitempty"`

	// The segment's average grade, in percents
	AverageGrade float32 `json:"average_grade,omitempty"`

	// The segments's city.
	City string `json:"city,omitempty"`

	// The category of the climb [0, 5]. Higher is harder ie. 5 is Hors catégorie, 0 is uncategorized in climb_category.
	ClimbCategory int64 `json:"climb_category,omitempty"`

	// The segment's country.
	Country string `json:"country,omitempty"`

	// The segment's distance, in meters
	Distance float32 `json:"distance,omitempty"`

	// The segments's highest elevation, in meters
	ElevationHigh float32 `json:"elevation_high,omitempty"`

	// The segments's lowest elevation, in meters
	ElevationLow float32 `json:"elevation_low,omitempty"`

	// end latlng
	EndLatlng LatLng `json:"end_latlng,omitempty"`

	// The unique identifier of this segment
	ID int64 `json:"id,omitempty"`

	// The segments's maximum grade, in percents
	MaximumGrade float32 `json:"maximum_grade,omitempty"`

	// The name of this segment
	Name string `json:"name,omitempty"`

	// Whether this segment is private.
	Private bool `json:"private,omitempty"`

	// start latlng
	StartLatlng LatLng `json:"start_latlng,omitempty"`

	// The segments's state or geographical region.
	State string `json:"state,omitempty"`
}

SummarySegment summary segment

swagger:model summarySegment

func (*SummarySegment) ContextValidate

func (m *SummarySegment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this summary segment based on the context it is used

func (*SummarySegment) MarshalBinary

func (m *SummarySegment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SummarySegment) UnmarshalBinary

func (m *SummarySegment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SummarySegment) Validate

func (m *SummarySegment) Validate(formats strfmt.Registry) error

Validate validates this summary segment

type SummarySegmentEffort

type SummarySegmentEffort struct {

	// The unique identifier of the activity related to this effort
	ActivityID int64 `json:"activity_id,omitempty"`

	// The effort's distance in meters
	Distance float32 `json:"distance,omitempty"`

	// The effort's elapsed time
	ElapsedTime int64 `json:"elapsed_time,omitempty"`

	// The unique identifier of this effort
	ID int64 `json:"id,omitempty"`

	// Whether this effort is the current best on the leaderboard
	IsKom bool `json:"is_kom,omitempty"`

	// The time at which the effort was started.
	// Format: date-time
	StartDate strfmt.DateTime `json:"start_date,omitempty"`

	// The time at which the effort was started in the local timezone.
	// Format: date-time
	StartDateLocal strfmt.DateTime `json:"start_date_local,omitempty"`
}

SummarySegmentEffort summary segment effort

swagger:model summarySegmentEffort

func (*SummarySegmentEffort) ContextValidate

func (m *SummarySegmentEffort) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this summary segment effort based on context it is used

func (*SummarySegmentEffort) MarshalBinary

func (m *SummarySegmentEffort) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SummarySegmentEffort) UnmarshalBinary

func (m *SummarySegmentEffort) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SummarySegmentEffort) Validate

func (m *SummarySegmentEffort) Validate(formats strfmt.Registry) error

Validate validates this summary segment effort

type TemperatureStream

type TemperatureStream struct {
	BaseStream

	// The sequence of temperature values for this stream, in celsius degrees
	Data []int64 `json:"data"`
}

TemperatureStream temperature stream

swagger:model temperatureStream

func (*TemperatureStream) ContextValidate

func (m *TemperatureStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this temperature stream based on the context it is used

func (*TemperatureStream) MarshalBinary

func (m *TemperatureStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (TemperatureStream) MarshalJSON

func (m TemperatureStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*TemperatureStream) UnmarshalBinary

func (m *TemperatureStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TemperatureStream) UnmarshalJSON

func (m *TemperatureStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*TemperatureStream) Validate

func (m *TemperatureStream) Validate(formats strfmt.Registry) error

Validate validates this temperature stream

type TimeStream

type TimeStream struct {
	BaseStream

	// The sequence of time values for this stream, in seconds
	Data []int64 `json:"data"`
}

TimeStream time stream

swagger:model timeStream

func (*TimeStream) ContextValidate

func (m *TimeStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this time stream based on the context it is used

func (*TimeStream) MarshalBinary

func (m *TimeStream) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (TimeStream) MarshalJSON

func (m TimeStream) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*TimeStream) UnmarshalBinary

func (m *TimeStream) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeStream) UnmarshalJSON

func (m *TimeStream) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*TimeStream) Validate

func (m *TimeStream) Validate(formats strfmt.Registry) error

Validate validates this time stream

type TimedZoneDistribution

type TimedZoneDistribution []*TimedZoneRange

TimedZoneDistribution Stores the exclusive ranges representing zones and the time spent in each.

swagger:model timedZoneDistribution

func (TimedZoneDistribution) ContextValidate

func (m TimedZoneDistribution) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this timed zone distribution based on the context it is used

func (TimedZoneDistribution) Validate

func (m TimedZoneDistribution) Validate(formats strfmt.Registry) error

Validate validates this timed zone distribution

type TimedZoneRange

type TimedZoneRange struct {
	ZoneRange

	// The number of seconds spent in this zone
	Time int64 `json:"time,omitempty"`
}

TimedZoneRange A union type representing the time spent in a given zone.

swagger:model timedZoneRange

func (*TimedZoneRange) ContextValidate

func (m *TimedZoneRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this timed zone range based on the context it is used

func (*TimedZoneRange) MarshalBinary

func (m *TimedZoneRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (TimedZoneRange) MarshalJSON

func (m TimedZoneRange) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*TimedZoneRange) UnmarshalBinary

func (m *TimedZoneRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimedZoneRange) UnmarshalJSON

func (m *TimedZoneRange) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*TimedZoneRange) Validate

func (m *TimedZoneRange) Validate(formats strfmt.Registry) error

Validate validates this timed zone range

type UpdatableActivity

type UpdatableActivity struct {

	// Whether this activity is a commute
	Commute bool `json:"commute,omitempty"`

	// The description of the activity
	Description string `json:"description,omitempty"`

	// Identifier for the gear associated with the activity. ‘none’ clears gear from activity
	GearID string `json:"gear_id,omitempty"`

	// Whether this activity is muted
	HideFromHome bool `json:"hide_from_home,omitempty"`

	// The name of the activity
	Name string `json:"name,omitempty"`

	// sport type
	SportType SportType `json:"sport_type,omitempty"`

	// Whether this activity was recorded on a training machine
	Trainer bool `json:"trainer,omitempty"`

	// type
	Type ActivityType `json:"type,omitempty"`
}

UpdatableActivity updatable activity

swagger:model updatableActivity

func (*UpdatableActivity) ContextValidate

func (m *UpdatableActivity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this updatable activity based on the context it is used

func (*UpdatableActivity) MarshalBinary

func (m *UpdatableActivity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdatableActivity) UnmarshalBinary

func (m *UpdatableActivity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdatableActivity) Validate

func (m *UpdatableActivity) Validate(formats strfmt.Registry) error

Validate validates this updatable activity

type Upload

type Upload struct {

	// The identifier of the activity this upload resulted into
	ActivityID int64 `json:"activity_id,omitempty"`

	// The error associated with this upload
	Error string `json:"error,omitempty"`

	// The external identifier of the upload
	ExternalID string `json:"external_id,omitempty"`

	// The unique identifier of the upload
	ID int64 `json:"id,omitempty"`

	// The unique identifier of the upload in string format
	IDStr string `json:"id_str,omitempty"`

	// The status of this upload
	Status string `json:"status,omitempty"`
}

Upload upload

swagger:model upload

func (*Upload) ContextValidate

func (m *Upload) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upload based on context it is used

func (*Upload) MarshalBinary

func (m *Upload) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Upload) UnmarshalBinary

func (m *Upload) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Upload) Validate

func (m *Upload) Validate(formats strfmt.Registry) error

Validate validates this upload

type ZoneRange

type ZoneRange struct {

	// The maximum value in the range.
	Max int64 `json:"max,omitempty"`

	// The minimum value in the range.
	Min int64 `json:"min,omitempty"`
}

ZoneRange zone range

swagger:model zoneRange

func (*ZoneRange) ContextValidate

func (m *ZoneRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this zone range based on context it is used

func (*ZoneRange) MarshalBinary

func (m *ZoneRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ZoneRange) UnmarshalBinary

func (m *ZoneRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ZoneRange) Validate

func (m *ZoneRange) Validate(formats strfmt.Registry) error

Validate validates this zone range

type ZoneRanges

type ZoneRanges []*ZoneRange

ZoneRanges zone ranges

swagger:model zoneRanges

func (ZoneRanges) ContextValidate

func (m ZoneRanges) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this zone ranges based on the context it is used

func (ZoneRanges) Validate

func (m ZoneRanges) Validate(formats strfmt.Registry) error

Validate validates this zone ranges

type Zones

type Zones struct {

	// heart rate
	HeartRate *HeartRateZoneRanges `json:"heart_rate,omitempty"`

	// power
	Power *PowerZoneRanges `json:"power,omitempty"`
}

Zones zones

swagger:model zones

func (*Zones) ContextValidate

func (m *Zones) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this zones based on the context it is used

func (*Zones) MarshalBinary

func (m *Zones) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Zones) UnmarshalBinary

func (m *Zones) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Zones) Validate

func (m *Zones) Validate(formats strfmt.Registry) error

Validate validates this zones

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL