TODO/Debug data

parent a1a5fba6
......@@ -14,6 +14,7 @@ LifeLogger helps you log your life.
- A **DataPoint** is an event pertaining to one of your Logs.
- Example: you climbed stairs to the 5th floor.
- Example: you saw a friend (Julien) today.
- Example: you felt relaxed today.
## Contributing
......
# Roadmap
# V0.1
- Validate MVP model
- MVP display
- MVP storage
- MVP Distribution
- [x] Validate MVP model
- [] MVP display
- [] MVP storage
- [] MVP Distribution
# V0.5
- More generic model
- Named events: saw friend
- +1: Brushed teeth
- Counts: climbed X floors
- Boolean events?
- Better display
- Online storage
- Material design
......@@ -28,8 +28,8 @@ data class DataPoint(
private val metadata: HashMap<String, Any> = HashMap()
) {
constructor(name: String, count: Int = NONE) : this() {
metadata["name"] = name
constructor(name: String?, count: Int = NONE) : this() {
name?.let { metadata["name"] = name }
metadata["count"] = count
}
......
......@@ -72,26 +72,25 @@ class HomeActivity : AppCompatActivity() {
}
private fun generateDebugData(): ArrayList<Log> {
var logs : ArrayList<Log> = ArrayList()
val logs: ArrayList<Log> = ArrayList()
val stairs = Log("Stairway to heaven")
stairs.addPoint(DataPoint("stairs", 7))
stairs.addPoint(DataPoint("lift"))
stairs.addPoint(DataPoint("stairs", 4))
stairs.addPoint(DataPoint("stairs", 4))
stairs.addPoint(DataPoint("lift"))
val moods = Log("MoodBoard")
moods.addPoint(DataPoint("happy"))
moods.addPoint(DataPoint("focused"))
moods.addPoint(DataPoint("relax"))
val mind = Log("MindBoard")
mind.addPoint(DataPoint("HeadSpace", 10))
mind.addPoint(DataPoint("HeadSpace", 5))
val friends = Log("Friends")
friends.addPoint(DataPoint("Julien"))
friends.addPoint(DataPoint("Alex"))
friends.addPoint(DataPoint("Simon"))
logs.add(stairs)
logs.add(moods)
logs.add(mind)
logs.add(friends)
return logs
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment