/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.0
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.chilkatsoft;

public class CkServerSentEvent {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected CkServerSentEvent(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CkServerSentEvent obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected static long swigRelease(CkServerSentEvent 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;
        chilkatJNI.delete_CkServerSentEvent(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CkServerSentEvent() {
    this(chilkatJNI.new_CkServerSentEvent(), true);
  }

  public void get_Data(CkString str) {
    chilkatJNI.CkServerSentEvent_get_Data(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String data() {
    return chilkatJNI.CkServerSentEvent_data(swigCPtr, this);
  }

  public void get_DebugLogFilePath(CkString str) {
    chilkatJNI.CkServerSentEvent_get_DebugLogFilePath(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String debugLogFilePath() {
    return chilkatJNI.CkServerSentEvent_debugLogFilePath(swigCPtr, this);
  }

  public void put_DebugLogFilePath(String newVal) {
    chilkatJNI.CkServerSentEvent_put_DebugLogFilePath(swigCPtr, this, newVal);
  }

  public void get_EventName(CkString str) {
    chilkatJNI.CkServerSentEvent_get_EventName(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String eventName() {
    return chilkatJNI.CkServerSentEvent_eventName(swigCPtr, this);
  }

  public void get_LastErrorHtml(CkString str) {
    chilkatJNI.CkServerSentEvent_get_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorHtml() {
    return chilkatJNI.CkServerSentEvent_lastErrorHtml(swigCPtr, this);
  }

  public void get_LastErrorText(CkString str) {
    chilkatJNI.CkServerSentEvent_get_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorText() {
    return chilkatJNI.CkServerSentEvent_lastErrorText(swigCPtr, this);
  }

  public void get_LastErrorXml(CkString str) {
    chilkatJNI.CkServerSentEvent_get_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorXml() {
    return chilkatJNI.CkServerSentEvent_lastErrorXml(swigCPtr, this);
  }

  public void get_LastEventId(CkString str) {
    chilkatJNI.CkServerSentEvent_get_LastEventId(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastEventId() {
    return chilkatJNI.CkServerSentEvent_lastEventId(swigCPtr, this);
  }

  public boolean get_LastMethodSuccess() {
    return chilkatJNI.CkServerSentEvent_get_LastMethodSuccess(swigCPtr, this);
  }

  public void put_LastMethodSuccess(boolean newVal) {
    chilkatJNI.CkServerSentEvent_put_LastMethodSuccess(swigCPtr, this, newVal);
  }

  public int get_Retry() {
    return chilkatJNI.CkServerSentEvent_get_Retry(swigCPtr, this);
  }

  public boolean get_VerboseLogging() {
    return chilkatJNI.CkServerSentEvent_get_VerboseLogging(swigCPtr, this);
  }

  public void put_VerboseLogging(boolean newVal) {
    chilkatJNI.CkServerSentEvent_put_VerboseLogging(swigCPtr, this, newVal);
  }

  public void get_Version(CkString str) {
    chilkatJNI.CkServerSentEvent_get_Version(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String version() {
    return chilkatJNI.CkServerSentEvent_version(swigCPtr, this);
  }

  public boolean LoadEvent(String eventText) {
    return chilkatJNI.CkServerSentEvent_LoadEvent(swigCPtr, this, eventText);
  }

}
