/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.10 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package nz.mega.sdk; public class MegaShareList { private long swigCPtr; protected boolean swigCMemOwn; protected MegaShareList(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(MegaShareList obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } protected synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; megaJNI.delete_MegaShareList(swigCPtr); } swigCPtr = 0; } } public MegaShare get(int i) { long cPtr = megaJNI.MegaShareList_get(swigCPtr, this, i); return (cPtr == 0) ? null : new MegaShare(cPtr, false); } public int size() { return megaJNI.MegaShareList_size(swigCPtr, this); } }