TODO/Debug data

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