Skip to content

Conversation

@mik629
Copy link

@mik629 mik629 commented Jun 15, 2021

  • added back-end DTOs
  • added retrofit
  • added repositories
  • added corresponding domain models
  • used kotlin serialization (haven't verified it yet, in hackathon app we used moshi)

* added back-end DTOs
* added retrofit
* added repositories
* added corresponding domain models
* used kotlin serialization (haven't verified it yet, in hackathon app we used moshi)

@GET("lectures/by-id")
suspend fun getLectureById(
@Query(value = "lectureId") lectureId: Long
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use a path variable, I think

@Body updateLectureRequestDTO: UpdateLectureRequestDTO
)

@GET("lectures/all")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use path variable, like:
{courseId}/lectures


// fixme: fix user auth
class TokenAuthenticator @Inject constructor(
// private val prefsStorage: PrefsStorage
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a PrefsStorage having DataStore under the hood

* fixed broken gradlew
* upgraded gradle to 7.2
@mik629 mik629 marked this pull request as ready for review August 29, 2021 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant