This file contains hidden or 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
| - у товаров есть отзывы. | |
| - на бэке есть команда которая с помощью ML делает всякие штуки. | |
| нам(разработке) поступила задача внедрить в список отзывов товара выводы | |
| на основе последних отзывов чтобы пользователю не было необходимости | |
| перечитывать отзывы один за другим. Вместо этого он может прочитать вывод. | |
| Ты отвечаешь за клиентскую реализацию. Как бы ты выполнял задачу? Можешь задать любые вопросы |
This file contains hidden or 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
| /**/ | |
| @Composable | |
| fun HomeScreenWhole( | |
| counter: State<Int>, | |
| onCounterClick: () -> Unit | |
| ) { | |
| val counterValue = counter.value | |
| Text( | |
| text = "Clicks: $counterValue", | |
| modifier = Modifier.clickable(onClick = onCounterClick) |
This file contains hidden or 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
| private fun _logEvent(name:String, params:Bundle?) { | |
| val paramsMap:MutableMap<String, String> = mutableMapOf<String, String>() | |
| if(params != null) { | |
| for (key in params.keySet()) { | |
| val value = params.get(key) | |
| if(value != null) { | |
| var strValue = value.toString() | |
| if(value is Bundle) { | |
| strValue = (value as Bundle).toString() | |
| } |