io.realm.kotlin.internal.interop.realm_http_request_t Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.2.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package io.realm.kotlin.internal.interop;
public class realm_http_request_t {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected realm_http_request_t(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(realm_http_request_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected static long swigRelease(realm_http_request_t obj) {
long ptr = 0;
if (obj != null) {
if (!obj.swigCMemOwn)
throw new RuntimeException("Cannot release ownership as memory is not owned");
ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.delete();
}
return ptr;
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
realmcJNI.delete_realm_http_request_t(swigCPtr);
}
swigCPtr = 0;
}
}
public void setMethod(int value) {
realmcJNI.realm_http_request_t_method_set(swigCPtr, this, value);
}
public int getMethod() {
return realmcJNI.realm_http_request_t_method_get(swigCPtr, this);
}
public void setUrl(String value) {
realmcJNI.realm_http_request_t_url_set(swigCPtr, this, value);
}
public String getUrl() {
return realmcJNI.realm_http_request_t_url_get(swigCPtr, this);
}
public void setTimeout_ms(long value) {
realmcJNI.realm_http_request_t_timeout_ms_set(swigCPtr, this, value);
}
public long getTimeout_ms() {
return realmcJNI.realm_http_request_t_timeout_ms_get(swigCPtr, this);
}
public void setHeaders(realm_http_header_t value) {
realmcJNI.realm_http_request_t_headers_set(swigCPtr, this, realm_http_header_t.getCPtr(value), value);
}
public realm_http_header_t getHeaders() {
long cPtr = realmcJNI.realm_http_request_t_headers_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_http_header_t(cPtr, false);
}
public void setNum_headers(long value) {
realmcJNI.realm_http_request_t_num_headers_set(swigCPtr, this, value);
}
public long getNum_headers() {
return realmcJNI.realm_http_request_t_num_headers_get(swigCPtr, this);
}
public void setBody(String value) {
realmcJNI.realm_http_request_t_body_set(swigCPtr, this, value);
}
public String getBody() {
return realmcJNI.realm_http_request_t_body_get(swigCPtr, this);
}
public void setBody_size(long value) {
realmcJNI.realm_http_request_t_body_size_set(swigCPtr, this, value);
}
public long getBody_size() {
return realmcJNI.realm_http_request_t_body_size_get(swigCPtr, this);
}
public realm_http_request_t() {
this(realmcJNI.new_realm_http_request_t(), true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy