Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare client to work with back-end api #14

Open
wants to merge 30 commits into
base: develop
Choose a base branch
from

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