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
package com.example.testfordatabase.application.dto.mapper | |
import com.example.testfordatabase.domain.aggregate.article.Article | |
import com.example.testfordatabase.domain.aggregate.comment.Comment | |
import com.example.testfordatabase.domain.aggregate.user.MyUser | |
import com.example.testfordatabase.swagger.api.* | |
import com.google.common.collect.ImmutableSet | |
import java.time.ZoneOffset | |
import java.util.stream.Collectors |
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
package de.check24.techtalk.recyclerview.bigtosmall | |
import android.os.Bundle | |
import android.util.Log | |
import android.view.LayoutInflater | |
import android.view.View | |
import androidx.recyclerview.widget.LinearLayoutManager | |
import androidx.recyclerview.widget.RecyclerView | |
import de.check24.techtalk.common.BaseActivity | |
import de.check24.techtalk.databinding.ActivityRecyclerviewBigToSmallBinding |
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
class MainViewModel( | |
val lonLatOfBishkek: LonLat, | |
private val app: Application, | |
val mainUseCase: MainUseCase, | |
private val loginUseCase: LoginUseCase, | |
presenterState: MainPresenterState, | |
globalNavigationState: GlobalNavigationState | |
) : AndroidViewModel(app), SuggestSession.SuggestListener, | |
MainPresenterState by presenterState, |
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
class MainMapsFragment : Fragment(), CameraListener { | |
var lonLatOfBishkek: LonLat = LonLat(42.831698, 74.621554) | |
private val MAPKIT_API_KEY = "5e4b8c11-3756-4222-ae2d-062f9e631c4f" | |
private var mapObjects: MapObjectCollection? = null | |
private val DRAGGABLE_PLACEMARK_CENTER = Point(42.831698, 74.621554) | |
private lateinit var searchManager: SearchManager | |
val viewModel: MainViewModel by sharedViewModel() |
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
class LocationDisplayFragment : Fragment(R.layout.fragment_location_display) { | |
val viewModel: MainViewModel by sharedViewModel() | |
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
tv_display_pickup.setOnClickListener { | |
with(viewModel) { | |
currentIsPickupLocation = true | |
openBottomSheetFragment() |
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
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".android.ui.main.MainActivity" | |
tools:showIn="@layout/activity_main"> |
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
var count = 0 | |
fun main(args: Array<String>) { | |
getKardsFromUser() | |
val kards = getKardsFromUser() | |
howManyTimesVasyaLookedKards(kards) | |
println(count) |
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
package com.company; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
public class Main { | |
static int counter = 0; |