View !CsvFromListMain.kt
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
fun main() { | |
val firstCategory = Category(0, "Phone") | |
val secondCategory = Category(1, "Laptop") | |
val categories = listOf(firstCategory, secondCategory) | |
val csv = csvOf( | |
listOf("id", "name"), | |
categories | |
) { | |
listOf(it.id.toString(), it.name) | |
} |
View OkHttpLambdaAsyncCallback.kt
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.github.yamin8000.fare.model | |
import android.os.Bundle | |
import com.github.yamin8000.fare.databinding.ActivityMainBinding | |
import com.github.yamin8000.fare.ui.BaseActivity | |
import com.github.yamin8000.fare.web.Services | |
import com.github.yamin8000.fare.web.WEB | |
class MainActivity : BaseActivity() { | |