Skip to content

Commit

Permalink
Added new Request Options
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofrancis committed Apr 30, 2018
1 parent d4eb6e4 commit b9e721c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions fetch2/src/main/java/com/tonyodev/fetch2/RequestOptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ enum class RequestOptions {
* downloading from the beginning.*/
REPLACE_ON_ENQUEUE_FRESH,

/** Fetch will remove any existing requests on enqueue that matches the new request's id or file.
* If an old request has started the download process, this new request will continue where
* it left off.*/
REPLACE_ALL_ON_ENQUEUE_WHERE_UNIQUE,

/** Fetch will remove any existing requests on enqueue that matches the new request's id or file.
* If the old request has started the download process, this new request will force
* downloading from the beginning.*/
REPLACE_ALL_ON_ENQUEUE_WHERE_UNIQUE_FRESH,

/** Fetch will auto replace an existing request where the file matches on enqueue.
* If the old request has started the download process, this new request will continue where
* it left off.*/
REPLACE_ON_ENQUEUE_FILE,

/** Fetch will auto replace an existing request where the file matches on enqueue.
* If the old request has started the download process, this new request will force
* downloading from the beginning.*/
REPLACE_ON_ENQUEUE_FRESH_FILE,

/** If a request with the same file path already exist in the Fetch database
* when enqueuing a new request, Fetch will append a number to the file name.
* Example: Original Path = "/data/dir/test.txt" to New Path = "/data/dir/test (1).txt".
Expand Down

0 comments on commit b9e721c

Please sign in to comment.