Back to project page Now_Manager.
The source code is released under:
Apache License
If you think the Android project Now_Manager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.collinguarino.nowmanager; /* w ww. j a v a 2 s . c om*/ import android.database.Cursor; import com.collinguarino.nowmanager.provider.Contracts; public class TimeCardObject { private long id; private String eventNameInput, filePath, address; private long timestamp; private boolean isLocation, isImage, isVoice; public TimeCardObject() { } public TimeCardObject(final Cursor cursor) { id = cursor.getLong(Contracts.TimeCards.I_ID); eventNameInput = cursor.getString(Contracts.TimeCards.I_EVENT_NAME_INPUT); timestamp = cursor.getLong(Contracts.TimeCards.I_TIMESTAMP); isLocation = cursor.getInt(Contracts.TimeCards.I_IS_LOCATION) == 1; filePath = cursor.getString(Contracts.TimeCards.I_FILE_PATH); isImage = cursor.getInt(Contracts.TimeCards.I_IS_IMAGE) == 1; isVoice = cursor.getInt(Contracts.TimeCards.I_IS_VOICE) == 1; address = cursor.getString(Contracts.TimeCards.I_ADDRESS); } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getEventNameInput() { return eventNameInput; } public String getAddress() { return address; } public long getTimestamp() { return timestamp; } public boolean isLocation() { return isLocation; } public boolean isImage() { return isImage; } public boolean isVoice() { return isVoice; } public String getFilePath() { return filePath; } }