Created
July 26, 2016 22:13
-
-
Save udacityandroid/ae83549fb0599bbdbb25ac179415b83c to your computer and use it in GitHub Desktop.
Example contract class for a table which contains data about the store's headphones stock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
wouw 87
i love udacity
me 41 comment
"You are my forty years old son who still lives with me."
"FORTY TWO. I AM FORTY TWO YEARS OLD."
52 c
comment date/2
54th comment 😁😂
55th #first in 2021
56th comment
57 ☜(゚ヮ゚☜)
58th comment
59
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First in 2020
My name is Mr. 38.