···1111 * Object definitions for records sent between Wear/Mobile
1212 */
13131414-data class Activity(val id: Long, val name: String, val icon: String, val color: Long)
1515-1616-data class CurrentActivity(val id: Long, val startedAt: Long, val tags: Array<Tag>) {
1717- override fun equals(other: Any?): Boolean {
1818- // autogenerated
1919- if (this === other) return true
2020- if (javaClass != other?.javaClass) return false
2121-2222- other as CurrentActivity
2323-2424- if (id != other.id) return false
2525- if (startedAt != other.startedAt) return false
2626- return tags.contentEquals(other.tags)
2727- }
1414+data class Activity(
1515+ val id: Long,
1616+ val name: String,
1717+ val icon: String,
1818+ val color: Long,
1919+)
28202929- override fun hashCode(): Int {
3030- // autogenerated
3131- var result = id.toInt()
3232- result = 31 * result + startedAt.hashCode()
3333- result = 31 * result + tags.contentHashCode()
3434- return result
3535- }
3636-}
2121+data class CurrentActivity(
2222+ val id: Long,
2323+ val startedAt: Long,
2424+ val tags: List<Tag>,
2525+)
37263838-data class Tag(val id: Long, val name: String, val isGeneral: Boolean, val color: Long)
2727+data class Tag(
2828+ val id: Long,
2929+ val name: String,
3030+ val isGeneral: Boolean,
3131+ val color: Long,
3232+)
39334034data class Settings(
4135 val allowMultitasking: Boolean,
···2222 *
2323 * Retrieves a list of all the time-tracking activities available for selection
2424 */
2525- suspend fun queryActivities(): Array<Activity>
2525+ suspend fun queryActivities(): List<Activity>
26262727 /**
2828 * [Request.QUERY_CURRENT_ACTIVITIES]
2929 *
3030 * Retrieves a list of the currently running activity/activities
3131 */
3232- suspend fun queryCurrentActivities(): Array<CurrentActivity>
3232+ suspend fun queryCurrentActivities(): List<CurrentActivity>
33333434 /**
3535 * [Request.SET_CURRENT_ACTIVITIES]
3636 *
3737 * Replaces the currently running activity/activities with the given activities
3838 */
3939- suspend fun setCurrentActivities(activities: Array<CurrentActivity>)
3939+ suspend fun setCurrentActivities(activities: List<CurrentActivity>)
40404141 /**
4242 * [Request.QUERY_TAGS_FOR_ACTIVITY]
4343 *
4444 * Retrieves the tags available for association with the activity with the given ID
4545 */
4646- suspend fun queryTagsForActivity(activityId: Long): Array<Tag>
4646+ suspend fun queryTagsForActivity(activityId: Long): List<Tag>
47474848 /**
4949 * [Request.QUERY_SETTINGS]