What is NetworkRequestHandler Class and why it's been used while working with APIs ? ✋🏻
I have seen this clsss used in many projects in which
APIs are included but couldn't understand what's the use of this class.
Please explain each line of this class properly.
package dev.android
import retrofit2.HttpException
import java.net.SocketTimeoutException
data class Resource(val status: Status, val data: T?, val message: String?) {
companion object {
fun success(data: T?): Resource {
return Resource(
Status.SUCCESS,
data,...