Android Open Source - Now_Manager Time Card Object






From Project

Back to project page Now_Manager.

License

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.

Java Source Code

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; }
}




Java Source Code List

com.collinguarino.nowmanager.AsyncGPSLog.java
com.collinguarino.nowmanager.EditTextBackEvent.java
com.collinguarino.nowmanager.EditTextMovement.java
com.collinguarino.nowmanager.SwipeDismissListViewTouchListener.java
com.collinguarino.nowmanager.TimeCardAdapter.java
com.collinguarino.nowmanager.TimeCardObject.java
com.collinguarino.nowmanager.floating.AddFloatingActionButton.java
com.collinguarino.nowmanager.floating.FloatingActionButton.java
com.collinguarino.nowmanager.floating.FloatingActionsMenu.java
com.collinguarino.nowmanager.provider.Contracts.java
com.collinguarino.nowmanager.provider.MainDatabaseHelper.java
com.collinguarino.nowmanager.provider.NowManagerProvider.java
com.collinguarino.nowmanager.ui.ActivityMain.java
com.collinguarino.nowmanager.ui.ActivitySettings.java
com.collinguarino.nowmanager.ui.Dialogs.java