-
Notifications
You must be signed in to change notification settings - Fork 10
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
AND-5815 Add AptosApi #435
Conversation
Mama1emon
commented
Jan 16, 2024
•
edited
Loading
edited
- Add AptosApi and request/response models
- Fix detekt warnings from develop
e3ffe1d
to
046a376
Compare
b3a3a4c
to
cfe93da
Compare
blockchain/build.gradle
Outdated
@@ -55,6 +55,7 @@ dependencies { | |||
implementation 'com.squareup.retrofit2:converter-moshi:2.6.0' | |||
implementation 'com.squareup.moshi:moshi:1.13.0' | |||
implementation "com.squareup.moshi:moshi-kotlin:1.13.0" | |||
implementation 'com.squareup.moshi:moshi-adapters:1.9.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
есть смысл такую же версию поставить, как и у остальных компонентов
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Готово
|
||
@JsonClass(generateAdapter = true) | ||
data class CoinResource( | ||
@Json(name = "data") val coin: CoinData, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ключевые слова котлина нельзя использовать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
точно!
я к тому, чтобы при использовании не было coin.coin
, потому что внутренняя сущность называется тоже coin, мб подумать чтобы как-то переименовать внешнюю?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да, coinData
звучит дельно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Перезалил
16676d8
to
192df95
Compare