/// /// FetchNativeRequest.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.one import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects import com.margelo.nitro.core.ArrayBuffer /** * Represents the JavaScript object/struct "FetchNativeRequest". */ @DoNotStrip @Keep data class FetchNativeRequest( @DoNotStrip @Keep val url: String, @DoNotStrip @Keep val method: String, @DoNotStrip @Keep val headers: Array, @DoNotStrip @Keep val body: ArrayBuffer?, @DoNotStrip @Keep val blob: FetchBlobRef?, @DoNotStrip @Keep val form: Array?, @DoNotStrip @Keep val boundary: String?, @DoNotStrip @Keep val omitCredentials: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is FetchNativeRequest) return false return Objects.deepEquals(this.url, other.url) && Objects.deepEquals(this.method, other.method) && Objects.deepEquals(this.headers, other.headers) && Objects.deepEquals(this.body, other.body) && Objects.deepEquals(this.blob, other.blob) && Objects.deepEquals(this.form, other.form) && Objects.deepEquals(this.boundary, other.boundary) && Objects.deepEquals(this.omitCredentials, other.omitCredentials) } override fun hashCode(): Int { return arrayOf( url, method, headers, body, blob, form, boundary, omitCredentials ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(url: String, method: String, headers: Array, body: ArrayBuffer?, blob: FetchBlobRef?, form: Array?, boundary: String?, omitCredentials: Boolean): FetchNativeRequest { return FetchNativeRequest(url, method, headers, body, blob, form, boundary, omitCredentials) } } }