Skip to content

Instantly share code, notes, and snippets.

@adamgordonbell
Created November 11, 2022 11:54
Show Gist options
  • Save adamgordonbell/bba1b0c657c36559de722acbc38b6ec8 to your computer and use it in GitHub Desktop.
Save adamgordonbell/bba1b0c657c36559de722acbc38b6ec8 to your computer and use it in GitHub Desktop.
todoStatus = done | notdone | in-progress | under review | blocked
todoPriority = A | B | C | unset
todoStickers = A | B | C | unset
todoDueDate = Date date | unset
todo {
name string
status todoStatus
priority todoPriority
stickers = todoStickers
duedate = todoDueDate
visibility = todoVisibilty
}
todoList {
list todo[]
getCount() : int
publicList() : todoList
filterList(...) : todoList
}
user {
name string
list todoList
friends user[]
AddTodo(todo)
CompleteTodo(todo)
getList(): todoList
getListByFilter(..) : todoList
getListByFriendToDo(friend user) : todoList // get a friends list and call publicList on it.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment