package com.dklaw.gogo2.database import java.time.LocalDateTime object TodoManager { private val todoList = mutableListOf() fun getAllTodo() : List{ return todoList } fun addTodo(title : String) { todoList.add(Todo(System.currentTimeMillis().toInt(), title, LocalDateTime.now())) } fun deleteTodo(id : Int) { todoList.removeIf{ it.id == id } } }