stravaService module
- Source:
Members
(inner, constant) firebaseFunctions
It allows to use firebaseFunctions.
- Source:
(inner, constant) stravaApi
It allows to use stravaApi.
- Source:
Methods
(async, inner) isBikeStatsOver(uid)
Asks the api if the user has more than 1000 km on the bike.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | user ID |
- Source:
(async, inner) isNewActivity(uid)
Asks the api if the user has a new activity.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | user ID |
- Source:
(async, inner) isNewComment(uid)
Asks the api if the user has a new comment on their last activity.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | user ID |
- Source:
(async, inner) isNewKudo(uid)
Asks the api if the user has a new like on their last activity.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | user ID |
- Source:
(async, inner) isRunStatsOver(uid)
Asks the api if the user has run more than 1000 km.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | user ID |
- Source:
(async, inner) isSwimStatsOver(uid)
Asks the api if the user has swum more than 1000 km.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | user ID |
- Source:
(async, inner) StravaLoop(func, uid, param)
function tree which allows you to choose the right function
Parameters:
Name | Type | Description |
---|---|---|
func |
string | function chosen by the user |
uid |
string | uid of the user |
param |
string | empty |
- Source:
Returns:
returns a bool true condition is true otherwise returns false