Skip to content

Instantly share code, notes, and snippets.

@udacityandroid
Created July 26, 2016 22:13
Show Gist options
  • Save udacityandroid/ae83549fb0599bbdbb25ac179415b83c to your computer and use it in GitHub Desktop.
Save udacityandroid/ae83549fb0599bbdbb25ac179415b83c to your computer and use it in GitHub Desktop.

Revisions

  1. udacityandroid created this gist Jul 26, 2016.
    21 changes: 21 additions & 0 deletions StoreContract.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    public final class StoreContract {

    public static abstract class HeadphoneEntry implements BaseColumns {

    public static final String TABLE_NAME = "headphones";
    public static final String COLUMN_NAME = "name";
    public static final String COLUMN_PRICE = "price";
    public static final String COLUMN_STYLE = "style";
    public static final String COLUMN_IN_STOCK = "in_stock";
    public static final String COLUMN_DESCRIPTION = "description";

    /**
    * Possible values for the style of the headphone.
    */
    public static final int STYLE_EAR_BUD = 0;
    public static final int STYLE_ON_EAR = 1;
    public static final int STYLE_OVER_EAR = 2;
    public static final int STYLE_BONE_CONDUCTION = 3;

    }
    }