-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change methodology of fetching activities from year based queries to …
…querying up to first 10 pages (#28) * This commit addresses a possible concern that Strava's backend is failing when `before` and `after` properties are specified by migrating the code to instead query up to the first 10 pages of activities.
- Loading branch information
1 parent
73709b2
commit e3732d6
Showing
48 changed files
with
302 additions
and
712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
app/src/main/java/com/activityartapp/data/dao/AthleteCacheDictionaryDao.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
app/src/main/java/com/activityartapp/data/entities/AthleteCacheDictionaryEntity.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
app/src/main/java/com/activityartapp/data/remote/responses/AthleteResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package com.activityartapp.data.remote.responses | ||
|
||
import com.activityartapp.domain.models.Athlete | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class AthleteResponse( | ||
@SerializedName("id") | ||
override val id: Long, | ||
) : Athlete | ||
val id: Long | ||
) |
8 changes: 0 additions & 8 deletions
8
app/src/main/java/com/activityartapp/data/remote/responses/AthleteWithResourceState.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
app/src/main/java/com/activityartapp/data/remote/responses/Segment.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,4 @@ interface Activity { | |
val sufferScore: Int? | ||
val summaryPolyline: String? | ||
val sportType: SportType | ||
|
||
} |
15 changes: 7 additions & 8 deletions
15
app/src/main/java/com/activityartapp/domain/models/Athlete.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
package com.activityartapp.domain.models | ||
|
||
/** | ||
* [Athlete] is a registered athlete on Strava. | ||
* | ||
* @property id [id] is an athlete's ID, as provided by Strava. | ||
*/ | ||
interface Athlete { | ||
val id: Long | ||
} | ||
interface Athlete : OAuth2 { | ||
val athleteId: Long | ||
val lastCachedUnixMs: Long? | ||
override val expiresAtUnixSeconds: Int | ||
override val accessToken: String | ||
override val refreshToken: String | ||
} |
Oops, something went wrong.