Skip to content

Instantly share code, notes, and snippets.

Avatar

Ruslan Leshchenko leshchenko

View GitHub Profile
@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)
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
/**
You can’t perform that action at this time.