Resource

public abstract class Resource implements INGWResource

Fields

mConnection

protected Connection mConnection

mDescription

protected String mDescription

mHasChildren

protected boolean mHasChildren

mId

protected int mId

mKeyName

protected String mKeyName

mName

protected String mName

mOwnerId

protected long mOwnerId

mParent

protected INGWResource mParent

mPermissions

protected JSONObject mPermissions

mRemoteId

protected long mRemoteId

mType

protected int mType

Constructors

Resource

public Resource(long remoteId, Connection connection)

Resource

public Resource(JSONObject json, Connection connection)

Resource

protected Resource(Parcel in)

Methods

describeContents

public int describeContents()

fillPermissions

public void fillPermissions()

getConnection

public Connection getConnection()

getDescription

public String getDescription()

getId

public int getId()

getKey

public String getKey()

getName

public String getName()

getParent

public INGWResource getParent()

getRemoteId

public long getRemoteId()

getResourceById

public INGWResource getResourceById(int id)

getType

public int getType()

setConnection

public void setConnection(Connection connection)

setParent

public void setParent(INGWResource resource)

writeToParcel

public void writeToParcel(Parcel parcel, int i)