-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Constants file for shared configuration values
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.abmo | ||
|
||
object Constant { | ||
|
||
const val DEFAULT_CONCURRENT_DOWNLOAD_LIMIT = 6 | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.abmo.model | ||
|
||
import com.abmo.Constant.DEFAULT_CONCURRENT_DOWNLOAD_LIMIT | ||
import java.io.File | ||
|
||
data class Config( | ||
val url: String, | ||
val resolution: String, | ||
var outputFile: File?, | ||
val header: Map<String, String>? = null, | ||
val connections: Int = 6 | ||
val connections: Int = DEFAULT_CONCURRENT_DOWNLOAD_LIMIT | ||
) |