58.4 Changing the Content Model
The content for the example as it currently stands is defined by the PlaceholderContent class file. Begin, therefore, by selecting the PlaceholderContent.kt file (located in the Project tool window in the app -> java -> com.ebookfrenzy.PrimaryDetailflow -> placeholder folder) and reviewing the code. At the bottom of the file is a declaration for a class named PlaceholderItem which is currently able to store three String objects representing content and details strings and an ID. The updated project, on the other hand, will need each item object to contain an ID string, a string for the web site name, and a string for the corresponding URL of the web site. To add these features, modify the PlaceholderItem class so that it reads as follows:
data class PlaceholderItem(val id: String, val website_name: String,
val website_url: String) {
override...