Created
July 31, 2017 01:38
-
-
Save mwshubham/756f588fe717b92d89447814801f4a92 to your computer and use it in GitHub Desktop.
CategoryData
This file contains hidden or 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
/** | |
* Created by shubham on 22/7/17. | |
*/ | |
@Entity(tableName = CATEGORY_TABLE_NAME) | |
public class CategoryData { | |
@SuppressWarnings("unused") | |
private static final String TAG = "CategoryData"; | |
@PrimaryKey | |
@ColumnInfo(name = COLUMN_NAME_ID) | |
@SerializedName(COLUMN_NAME_ID) | |
@Expose | |
public String id; | |
@ColumnInfo(name = COLUMN_NAME_COUNT) | |
@SerializedName(COLUMN_NAME_COUNT) | |
@Expose | |
public String count; | |
@ColumnInfo(name = COLUMN_NAME_DESCRIPTION) | |
@SerializedName(COLUMN_NAME_DESCRIPTION) | |
@Expose | |
public String description; | |
@ColumnInfo(name = COLUMN_NAME_NAME) | |
@SerializedName(COLUMN_NAME_NAME) | |
@Expose | |
public String name; | |
public String getId() { | |
if (id == null) { | |
return ""; | |
} | |
return id; | |
} | |
public String getCount() { | |
if (count == null) { | |
return ""; | |
} | |
return count; | |
} | |
public String getDescription() { | |
if (description == null) { | |
return ""; | |
} | |
return description; | |
} | |
public String getName() { | |
if (name == null) { | |
return ""; | |
} | |
return name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment