Android Open Source - flashcards Card






From Project

Back to project page flashcards.

License

The source code is released under:

MIT License

If you think the Android project flashcards 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 edu.cmu.hcii.ssui.flashcards;
/*from   w  ww  . j  a va 2 s .  c o m*/
public class Card {
    private static final String TAG = Card.class.getSimpleName();

    public interface CardMutator {
        void insertCard(long deckId, String front, String back);
        void deleteCard(long id);
        void updateCard(long id, String front, String back);
    }

    private final long mId;
    private long mDeckId;
    private String mFront;
    private String mBack;

    public Card(long id, long deckId, String front, String back) {
       mId = id;
       mDeckId = deckId;
       mFront = front;
       mBack = back;
    }

    public long getId() {
        return mId;
    }

    public long getDeckId() {
        return mDeckId;
    }

    public String getFront() {
        return mFront;
    }

    public String getBack() {
        return mBack;
    }

}




Java Source Code List

edu.cmu.hcii.ssui.flashcards.CardListActivity.java
edu.cmu.hcii.ssui.flashcards.Card.java
edu.cmu.hcii.ssui.flashcards.Deck.java
edu.cmu.hcii.ssui.flashcards.StudyActivity.java
edu.cmu.hcii.ssui.flashcards.StudyListActivity.java
edu.cmu.hcii.ssui.flashcards.db.CardContract.java
edu.cmu.hcii.ssui.flashcards.db.CardDatabase.java
edu.cmu.hcii.ssui.flashcards.db.CardDbHelper.java
edu.cmu.hcii.ssui.flashcards.dialogs.DeleteCardDialog.java
edu.cmu.hcii.ssui.flashcards.dialogs.DeleteDeckDialog.java
edu.cmu.hcii.ssui.flashcards.dialogs.EditCardDialog.java
edu.cmu.hcii.ssui.flashcards.dialogs.EditDeckDialog.java
edu.cmu.hcii.ssui.flashcards.dialogs.NewCardDialog.java
edu.cmu.hcii.ssui.flashcards.dialogs.NewDeckDialog.java
edu.cmu.hcii.ssui.flashcards.util.ArgUtil.java