ru
.
pavkin
.
todoist
.
api
.
core
model
package
model
Contains all command and resource model classes
Source
package.scala
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
model
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Type Members
case class
AbsoluteTimeBasedReminder
(
id:
@@
[
Int
,
ReminderId
]
,
subscriber:
@@
[
Int
,
UserId
]
,
task:
@@
[
Int
,
TaskId
]
,
service:
ReminderService
,
dueDate:
TaskDate
,
isDeleted:
Boolean
)
extends
TimeBasedReminder
with
Product
with
Serializable
case class
AccessToken
(
token:
String
,
tokenType:
String
)
extends
Product
with
Serializable
case class
AddAbsoluteTimeBasedReminder
[
A
]
(
taskId:
@@
[
A
,
TaskId
]
,
service:
ReminderService
,
dueDate:
TaskDate
,
subscriber:
Option
[
@@
[
Int
,
UserId
]] =
None
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
ReminderId
] =
UUID.randomUUID().reminderId
)
(
implicit
evidence$4:
IsResourceId
[
A
]
)
extends
TempIdCommand
[
ReminderId
] with
Product
with
Serializable
case class
AddFilter
(
name:
String
,
query:
String
,
color:
LabelColor
=
LabelColor.color0
,
order:
Option
[
Int
] =
None
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
FilterId
] =
UUID.randomUUID().filterId
)
extends
TempIdCommand
[
FilterId
] with
Product
with
Serializable
case class
AddLabel
(
name:
String
,
color:
Option
[
LabelColor
] =
None
,
order:
Option
[
Int
] =
None
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
LabelId
] =
UUID.randomUUID().labelId
)
extends
TempIdCommand
[
LabelId
] with
Product
with
Serializable
case class
AddLocationBasedReminder
[
A
]
(
taskId:
@@
[
A
,
TaskId
]
,
locationName:
String
,
latitude:
Double
,
longitude:
Double
,
triggerKind:
TriggerKind
,
radiusInMeters:
Int
,
subscriber:
Option
[
@@
[
Int
,
UserId
]] =
None
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
ReminderId
] =
UUID.randomUUID().reminderId
)
(
implicit
evidence$5:
IsResourceId
[
A
]
)
extends
TempIdCommand
[
ReminderId
] with
Product
with
Serializable
case class
AddNote
[
A
]
(
content:
String
,
taskId:
@@
[
A
,
TaskId
]
,
notifyUsers:
List
[
@@
[
Int
,
UserId
]] =
Nil
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
NoteId
] =
UUID.randomUUID().noteId
)
(
implicit
evidence$2:
IsResourceId
[
A
]
)
extends
TempIdCommand
[
NoteId
] with
Product
with
Serializable
case class
AddProject
(
name:
String
,
color:
Option
[
ProjectColor
] =
None
,
indent:
Option
[
Indent
] =
None
,
order:
Option
[
Int
] =
None
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
ProjectId
] =
UUID.randomUUID().projectId
)
extends
TempIdCommand
[
ProjectId
] with
Product
with
Serializable
case class
AddRelativeTimeBasedReminder
[
A
]
(
taskId:
@@
[
A
,
TaskId
]
,
service:
ReminderService
,
minutesBefore:
ReminderPeriod
,
subscriber:
Option
[
@@
[
Int
,
UserId
]] =
None
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
ReminderId
] =
UUID.randomUUID().reminderId
)
(
implicit
evidence$3:
IsResourceId
[
A
]
)
extends
TempIdCommand
[
ReminderId
] with
Product
with
Serializable
case class
AddTask
[
A
]
(
content:
String
,
projectId:
@@
[
A
,
ProjectId
]
,
date:
Option
[
TaskDate
] =
None
,
priority:
Option
[
Priority
] =
None
,
indent:
Option
[
Indent
] =
None
,
order:
Option
[
Int
] =
None
,
dayOrder:
Option
[
Int
] =
None
,
isCollapsed:
Option
[
Boolean
] =
None
,
labels:
List
[
@@
[
Int
,
LabelId
]] =
Nil
,
assignedBy:
Option
[
@@
[
Int
,
UserId
]] =
None
,
responsible:
Option
[
@@
[
Int
,
UserId
]] =
None
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
TaskId
] =
UUID.randomUUID().taskId
)
(
implicit
evidence$1:
IsResourceId
[
A
]
)
extends
TempIdCommand
[
TaskId
] with
Product
with
Serializable
case class
AddTaskToInbox
(
content:
String
,
date:
Option
[
TaskDate
] =
None
,
priority:
Option
[
Priority
] =
None
,
indent:
Option
[
Indent
] =
None
,
order:
Option
[
Int
] =
None
,
dayOrder:
Option
[
Int
] =
None
,
isCollapsed:
Option
[
Boolean
] =
None
,
labels:
List
[
@@
[
Int
,
LabelId
]] =
Nil
,
uuid:
UUID
=
UUID.randomUUID()
,
tempId:
@@
[
UUID
,
TaskId
] =
UUID.randomUUID().taskId
)
extends
TempIdCommand
[
TaskId
] with
Product
with
Serializable
case class
ArchiveProjects
[
A
]
(
projects:
List
[
@@
[
A
,
ProjectId
]]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$19:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
CloseTask
[
A
]
(
task:
@@
[
A
,
TaskId
]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$17:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
sealed
trait
Command
extends
AnyRef
case class
CommandFailure
(
code:
Int
,
message:
String
)
extends
SingleCommandStatus
with
Product
with
Serializable
case class
CommandResult
(
uuid:
UUID
,
status:
CommandStatus
)
extends
TodoistCommandResult
with
Product
with
Serializable
sealed
trait
CommandStatus
extends
AnyRef
case class
DateFormat
extends
Product
with
Serializable
case class
DateLanguage
extends
Product
with
Serializable
case class
DayOfWeek
extends
Product
with
Serializable
case class
DeleteFilter
[
A
]
(
filter:
@@
[
A
,
FilterId
]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$14:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
DeleteLabel
[
A
]
(
label:
@@
[
A
,
LabelId
]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$13:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
DeleteNote
[
A
]
(
note:
@@
[
A
,
NoteId
]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$15:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
DeleteProjects
[
A
]
(
projects:
List
[
@@
[
A
,
ProjectId
]]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$12:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
DeleteReminder
[
A
]
(
reminder:
@@
[
A
,
ReminderId
]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$16:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
DeleteTasks
[
A
]
(
tasks:
List
[
@@
[
A
,
TaskId
]]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$11:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
FileAttachment
(
name:
String
,
size:
Long
,
mimeType:
String
,
url:
String
,
uploadState:
UploadState
)
extends
Product
with
Serializable
case class
Filter
(
id:
@@
[
Int
,
FilterId
]
,
name:
String
,
query:
String
,
color:
LabelColor
,
order:
Int
,
isDeleted:
Boolean
)
extends
Product
with
Serializable
case class
Indent
extends
Product
with
Serializable
type
Item
=
Task
case class
Label
(
id:
@@
[
Int
,
LabelId
]
,
userId:
@@
[
Int
,
UserId
]
,
name:
String
,
color:
LabelColor
,
order:
Int
,
isDeleted:
Boolean
)
extends
Product
with
Serializable
case class
LabelColor
extends
Product
with
Serializable
case class
LocationBasedReminder
(
id:
@@
[
Int
,
ReminderId
]
,
subscriber:
@@
[
Int
,
UserId
]
,
task:
@@
[
Int
,
TaskId
]
,
locationName:
String
,
latitude:
Double
,
longitude:
Double
,
triggerKind:
TriggerKind
,
radiusInMeters:
Int
,
isDeleted:
Boolean
)
extends
Reminder
with
Product
with
Serializable
case class
MoveTasks
(
tasks:
Map
[
@@
[
Int
,
ProjectId
],
List
[
@@
[
Int
,
TaskId
]]]
,
toProject:
@@
[
Int
,
ProjectId
]
,
uuid:
UUID
=
UUID.randomUUID()
)
extends
SimpleCommand
with
Product
with
Serializable
case class
MultiItemCommandStatus
(
items:
Map
[
Int
,
SingleCommandStatus
]
)
extends
CommandStatus
with
Product
with
Serializable
case class
Note
(
id:
@@
[
Int
,
NoteId
]
,
postedBy:
@@
[
Int
,
UserId
]
,
task:
@@
[
Int
,
TaskId
]
,
project:
@@
[
Int
,
ProjectId
]
,
content:
String
,
attachment:
Option
[
FileAttachment
]
,
subscribers:
List
[
@@
[
Int
,
UserId
]]
,
isDeleted:
Boolean
,
isArchived:
Boolean
,
postedAt:
Date
)
extends
Product
with
Serializable
case class
Priority
extends
Product
with
Serializable
sealed
trait
Project
extends
AnyRef
case class
ProjectColor
extends
Product
with
Serializable
case class
ProjectsSortOrder
extends
Product
with
Serializable
case class
RegularProject
(
id:
@@
[
Int
,
ProjectId
]
,
userId:
@@
[
Int
,
UserId
]
,
name:
String
,
color:
ProjectColor
,
indent:
Indent
,
order:
Int
,
isCollapsed:
Boolean
,
isShared:
Boolean
,
isDeleted:
Boolean
,
isInbox:
Boolean
,
isTeamInbox:
Boolean
)
extends
Project
with
Product
with
Serializable
case class
RelativeTimeBasedReminder
(
id:
@@
[
Int
,
ReminderId
]
,
subscriber:
@@
[
Int
,
UserId
]
,
task:
@@
[
Int
,
TaskId
]
,
service:
ReminderService
,
dueDate:
TaskDate
,
minutesBefore:
Int
,
isDeleted:
Boolean
)
extends
TimeBasedReminder
with
Product
with
Serializable
sealed
trait
Reminder
extends
AnyRef
case class
ReminderPeriod
extends
Product
with
Serializable
sealed
trait
ReminderService
extends
AnyRef
sealed
trait
SimpleCommand
extends
Command
sealed
trait
SingleCommandStatus
extends
CommandStatus
case class
Task
(
id:
@@
[
Int
,
TaskId
]
,
userId:
@@
[
Int
,
UserId
]
,
projectId:
@@
[
Int
,
ProjectId
]
,
content:
String
,
date:
Option
[
TaskDate
]
,
priority:
Priority
,
indent:
Indent
,
order:
Int
,
dayOrder:
Int
,
isCollapsed:
Boolean
,
labels:
List
[
@@
[
Int
,
LabelId
]]
,
assignedBy:
Option
[
@@
[
Int
,
UserId
]]
,
responsible:
Option
[
@@
[
Int
,
UserId
]]
,
isCompleted:
Boolean
,
isInHistory:
Boolean
,
isDeleted:
Boolean
,
isArchived:
Boolean
,
addedAt:
Date
)
extends
Product
with
Serializable
case class
TaskDate
(
text:
Option
[
String
]
,
language:
DateLanguage
,
dueDateUTC:
Date
)
extends
Product
with
Serializable
sealed
trait
TempIdCommand
[
Tag
]
extends
Command
case class
TempIdCommandResult
(
uuid:
UUID
,
status:
TempIdCommandStatus
)
extends
TodoistCommandResult
with
Product
with
Serializable
sealed
trait
TempIdCommandStatus
extends
AnyRef
case class
TempIdFailure
(
code:
Int
,
message:
String
)
extends
TempIdCommandStatus
with
Product
with
Serializable
case class
TempIdSuccess
(
tempId:
UUID
,
realId:
Int
)
extends
TempIdCommandStatus
with
Product
with
Serializable
case class
Theme
extends
Product
with
Serializable
sealed
trait
TimeBasedReminder
extends
Reminder
case class
TimeFormat
extends
Product
with
Serializable
sealed
trait
TodoistCommandResult
extends
AnyRef
case class
TokenExchange
(
clientId:
String
,
clientSecret:
String
,
authCode:
String
)
extends
Product
with
Serializable
sealed abstract
class
TokenScope
extends
AnyRef
case class
UnarchiveProjects
[
A
]
(
projects:
List
[
@@
[
A
,
ProjectId
]]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$20:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
UncompleteTasks
[
A
]
(
tasks:
List
[
@@
[
A
,
TaskId
]]
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$18:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
UpdateFilter
[
A
]
(
id:
@@
[
A
,
FilterId
]
,
name:
Option
[
String
] =
None
,
query:
Option
[
String
] =
None
,
color:
Option
[
LabelColor
] =
None
,
order:
Option
[
Int
] =
None
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$9:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
UpdateLabel
[
A
]
(
id:
@@
[
A
,
LabelId
]
,
name:
Option
[
String
] =
None
,
color:
Option
[
LabelColor
] =
None
,
order:
Option
[
Int
] =
None
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$8:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
UpdateNote
[
A
]
(
id:
@@
[
A
,
NoteId
]
,
content:
Option
[
String
] =
None
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$10:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
UpdateProject
[
A
]
(
id:
@@
[
A
,
ProjectId
]
,
name:
Option
[
String
] =
None
,
color:
Option
[
ProjectColor
] =
None
,
indent:
Option
[
Indent
] =
None
,
order:
Option
[
Int
] =
None
,
isCollapsed:
Option
[
Boolean
] =
None
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$6:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
case class
UpdateTask
[
A
]
(
id:
@@
[
A
,
TaskId
]
,
content:
Option
[
String
] =
None
,
date:
Option
[
TaskDate
] =
None
,
priority:
Option
[
Priority
] =
None
,
indent:
Option
[
Indent
] =
None
,
order:
Option
[
Int
] =
None
,
dayOrder:
Option
[
Int
] =
None
,
isCollapsed:
Option
[
Boolean
] =
None
,
labels:
List
[
@@
[
Int
,
LabelId
]] =
Nil
,
assignedBy:
Option
[
@@
[
Int
,
UserId
]] =
None
,
responsible:
Option
[
@@
[
Int
,
UserId
]] =
None
,
uuid:
UUID
=
UUID.randomUUID()
)
(
implicit
evidence$7:
IsResourceId
[
A
]
)
extends
SimpleCommand
with
Product
with
Serializable
sealed
trait
UploadState
extends
AnyRef
case class
User
(
id:
@@
[
Int
,
UserId
]
,
email:
String
,
fullName:
String
,
inboxProject:
@@
[
Int
,
ProjectId
]
,
timezone:
TimeZone
,
startPageQuery:
String
,
weekStartDay:
DayOfWeek
,
postponeTo:
DayOfWeek
,
timeFormat:
TimeFormat
,
dateFormat:
DateFormat
,
projectsSortOrder:
ProjectsSortOrder
,
hasPushReminders:
Boolean
,
defaultReminder:
Option
[
ReminderService
]
,
autoReminder:
Option
[
Int
]
,
mobileNumber:
Option
[
String
]
,
mobileHost:
Option
[
String
]
,
totalCompletedTasksCount:
Int
,
todayCompletedTasksCount:
Int
,
karma:
Double
,
premiumUntil:
Option
[
Date
]
,
isBusinessAccountAdmin:
Boolean
,
businessAccountId:
Option
[
Int
]
,
isBeta:
Boolean
,
isDummy:
Boolean
,
dateJoined:
Date
,
theme:
Theme
,
avatars:
UserAvatars
)
extends
Product
with
Serializable
case class
UserAvatars
(
small:
Option
[
String
]
,
medium:
Option
[
String
]
,
big:
Option
[
String
]
,
s640:
Option
[
String
]
)
extends
Product
with
Serializable
Value Members
object
CommandSuccess
extends
SingleCommandStatus
with
Product
with
Serializable
object
Completed
extends
UploadState
with
Product
with
Serializable
object
DateFormat
extends
Serializable
object
DateLanguage
extends
Serializable
object
DayOfWeek
extends
Serializable
object
External
extends
UploadState
with
Product
with
Serializable
object
Indent
extends
Serializable
object
LabelColor
extends
Serializable
object
LocationBasedReminder
extends
Serializable
object
Pending
extends
UploadState
with
Product
with
Serializable
object
Priority
extends
Serializable
object
ProjectColor
extends
Serializable
object
ProjectsSortOrder
extends
Serializable
object
ReminderPeriod
extends
Serializable
object
ReminderService
object
Theme
extends
Serializable
object
TimeFormat
extends
Serializable
object
TodoistDate
object
TokenScope
object
UploadState
package
util
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Contains all command and resource model classes