// ParseStravaActivity converts from swagger.SummaryActivity to models.User
ParseStravaActivity converts from swagger.SummaryActivity to models.User
// ParseStravaActivity converts from swagger . SummaryActivity to models . User
func ParseStravaActivity(stravaActivity swagger.SummaryActivity, user User) *Activity {
	return &Activity{
		UserID:      user.ID,
		Provider:    user.Provider,
		ProviderID:  strconv.Itoa(int(stravaActivity.Id)),
		Name:        stravaActivity.Name,
		Type:        fmt.Sprintf("%v", *stravaActivity.Type_),
		Datetime:    stravaActivity.StartDateLocal,
		Distance:    int(stravaActivity.Distance),
		MovingTime:  int(stravaActivity.MovingTime),
		ElapsedTime: int(stravaActivity.ElapsedTime),
	}
}
func ParseStravaActivity ( stravaActivity swagger . SummaryActivity , user User ) * Activity { return & Activity { UserID : user . ID , Provider : user . Provider , ProviderID : strconv . Itoa ( int ( stravaActivity . Id ) ) , Name : stravaActivity . Name , Type : fmt . Sprintf ( " " , * stravaActivity . Type_ ) , Datetime : stravaActivity . StartDateLocal , Distance : int ( stravaActivity . Distance ) , MovingTime : int ( stravaActivity . MovingTime ) , ElapsedTime : int ( stravaActivity . ElapsedTime ) , } }
ParseStravaActivity converts from swagger.SummaryActivity to models.User
ParseStravaActivity converts from swagger . SummaryActivity to models . User