/// /// NitroResponse.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.nitrofetch import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.ArrayBuffer /** * Represents the JavaScript object/struct "NitroResponse". */ @DoNotStrip @Keep data class NitroResponse( @DoNotStrip @Keep val url: String, @DoNotStrip @Keep val status: Double, @DoNotStrip @Keep val statusText: String, @DoNotStrip @Keep val ok: Boolean, @DoNotStrip @Keep val redirected: Boolean, @DoNotStrip @Keep val headers: Array, @DoNotStrip @Keep val bodyString: String?, @DoNotStrip @Keep val bodyBytes: ArrayBuffer? ) { /* primary constructor */ companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(url: String, status: Double, statusText: String, ok: Boolean, redirected: Boolean, headers: Array, bodyString: String?, bodyBytes: ArrayBuffer?): NitroResponse { return NitroResponse(url, status, statusText, ok, redirected, headers, bodyString, bodyBytes) } } }