Skip to content

Instantly share code, notes, and snippets.

Avatar

Ruslan Leshchenko leshchenko

View GitHub Profile
View NetworkError.kt
import com.google.gson.Gson
import com.swishhoop.util.TLog
import retrofit2.HttpException
import java.io.IOException
import java.net.ConnectException
import java.net.SocketTimeoutException
import java.net.UnknownHostException
import kotlin.reflect.KClass
/**
@leshchenko
leshchenko / Bitmask.kt
Created Jul 29, 2019
Bitmask filtering
View Bitmask.kt
class Bitmask(
mask: Int
) {
private var bitmask = mask
val mask: Int
get() = bitmask
constructor() : this(0)
You can’t perform that action at this time.