Skip to content

Instantly share code, notes, and snippets.

View TimzOwen's full-sized avatar
🌴
Unstoppable Community Ninja (#ALCBoy)

Timz Owen TimzOwen

🌴
Unstoppable Community Ninja (#ALCBoy)
View GitHub Profile
@TimzOwen
TimzOwen / StoreContract.java
Created February 15, 2020 23:10 — forked from udacityandroid/StoreContract.java
Example contract class for a table which contains data about the store's headphones stock
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";