Skip to content

Commit 087d5c0

Browse files
author
Jill Heske
committed
Step.07-Exercise-Create-a-Worker
1 parent 7223c51 commit 087d5c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/src/main/java/com/example/android/devbyteviewer/work/RefreshDataWork.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@
1616
*/
1717

1818
package com.example.android.devbyteviewer.work
19+
20+
// TODO (01) Create the RefreshDataWorker class, extend it from CoroutineWorker, and
21+
// pass in a Context and WorkerParams.
22+
23+
// TODO (02) Override the required doWork() method, and create variables for the
24+
// database and the repository.
25+
26+
// TODO (03) Inside doWork(), in a try-catch block, refresh the videos, and
27+
// use Payload() to return SUCCESS or RETRY result.

0 commit comments

Comments
 (0)