Skip to content

Commit

Permalink
fixed .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
wmichalska committed Mar 5, 2021
1 parent 5f87e1e commit 1e0f980
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 33 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ build/
.idea/libraries
.idea/modules.xml
.idea/gradle.xml
.idea/caches/build_file_checksums.ser
.idea/compiler.xml
.idea/inspectionProfiles/profiles_settings.xml
.idea/.name
Expand Down
Binary file removed .idea/caches/build_file_checksums.ser
Binary file not shown.
6 changes: 0 additions & 6 deletions app/src/main/java/com/example/plantdiscover/AdapterPlant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,8 @@ class AdapterPlant(private val plants: List<Data>) :
}

class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
// var plantImage: ImageView
// var commonFamilyName: TextView
// var commonName: TextView
//
// init {
val plantImage:ImageView = itemView.findViewById(R.id.plant_image)
val commonName:TextView = itemView.findViewById(R.id.common_name)
val commonFamilyName:TextView = itemView.findViewById(R.id.common_family_name)
}
// }
}
30 changes: 3 additions & 27 deletions app/src/main/java/com/example/plantdiscover/model/Data.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,12 @@ package com.example.plantdiscover.model
import com.google.gson.annotations.SerializedName

data class Data(
// @SerializedName("author")
// val author: String,
// @SerializedName("bibliography")
// val bibliography: String,
@SerializedName("common_name")
val commonName: String,
// @SerializedName("family")
// val family: String,

@SerializedName("family_common_name")
val familyCommonName: String,
// @SerializedName("genus")
// val genus: String,
// @SerializedName("genus_id")
// val genusId: Int,
// @SerializedName("id")
// val id: Int,

@SerializedName("image_url")
val imageUrl: String,
// @SerializedName("links")
// val links: String,
// @SerializedName("rank")
// val rank: String,
// @SerializedName("scientific_name")
// val scientificName: String,
// @SerializedName("slug")
// val slug: String,
// @SerializedName("status")
// val status: String,
// @SerializedName("synonyms")
// val synonyms: List<String>,
// @SerializedName("year")
// val year: Int
val imageUrl: String
)

0 comments on commit 1e0f980

Please sign in to comment.