/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.2 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.frostwire.jlibtorrent.swig; public class feed_item { private long swigCPtr; protected boolean swigCMemOwn; protected feed_item(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(feed_item obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; libtorrent_jni.delete_feed_item(swigCPtr); } swigCPtr = 0; } } public feed_item() { this(libtorrent_jni.new_feed_item(), true); } public void setUrl(String value) { libtorrent_jni.feed_item_url_set(swigCPtr, this, value); } public String getUrl() { return libtorrent_jni.feed_item_url_get(swigCPtr, this); } public void setUuid(String value) { libtorrent_jni.feed_item_uuid_set(swigCPtr, this, value); } public String getUuid() { return libtorrent_jni.feed_item_uuid_get(swigCPtr, this); } public void setTitle(String value) { libtorrent_jni.feed_item_title_set(swigCPtr, this, value); } public String getTitle() { return libtorrent_jni.feed_item_title_get(swigCPtr, this); } public void setDescription(String value) { libtorrent_jni.feed_item_description_set(swigCPtr, this, value); } public String getDescription() { return libtorrent_jni.feed_item_description_get(swigCPtr, this); } public void setComment(String value) { libtorrent_jni.feed_item_comment_set(swigCPtr, this, value); } public String getComment() { return libtorrent_jni.feed_item_comment_get(swigCPtr, this); } public void setCategory(String value) { libtorrent_jni.feed_item_category_set(swigCPtr, this, value); } public String getCategory() { return libtorrent_jni.feed_item_category_get(swigCPtr, this); } public void setSize(long value) { libtorrent_jni.feed_item_size_set(swigCPtr, this, value); } public long getSize() { return libtorrent_jni.feed_item_size_get(swigCPtr, this); } public void setHandle(torrent_handle value) { libtorrent_jni.feed_item_handle_set(swigCPtr, this, torrent_handle.getCPtr(value), value); } public torrent_handle getHandle() { long cPtr = libtorrent_jni.feed_item_handle_get(swigCPtr, this); return (cPtr == 0) ? null : new torrent_handle(cPtr, false); } public void setInfo_hash(sha1_hash value) { libtorrent_jni.feed_item_info_hash_set(swigCPtr, this, sha1_hash.getCPtr(value), value); } public sha1_hash getInfo_hash() { long cPtr = libtorrent_jni.feed_item_info_hash_get(swigCPtr, this); return (cPtr == 0) ? null : new sha1_hash(cPtr, false); } }