-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slight code cleanup and reformatting
- Loading branch information
Showing
6 changed files
with
16 additions
and
32 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
8 changes: 3 additions & 5 deletions
8
...le/src/main/java/com/aneonex/bitcoinchecker/datamodule/model/CurrencyPairsListWithDate.kt
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,8 +1,6 @@ | ||
package com.aneonex.bitcoinchecker.datamodule.model | ||
|
||
class CurrencyPairsListWithDate { | ||
@kotlin.jvm.JvmField | ||
var date: Long = 0 | ||
@kotlin.jvm.JvmField | ||
class CurrencyPairsListWithDate( | ||
var date: Long = 0, | ||
var pairs: List<CurrencyPairInfo>? = null | ||
} | ||
) |
6 changes: 5 additions & 1 deletion
6
dataModule/src/main/java/com/aneonex/bitcoinchecker/datamodule/model/CurrencySubunit.kt
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,3 +1,7 @@ | ||
package com.aneonex.bitcoinchecker.datamodule.model | ||
|
||
class CurrencySubunit @JvmOverloads constructor(val name: String, val subunitToUnit: Long, val allowDecimal: Boolean = true) | ||
class CurrencySubunit( | ||
val name: String, | ||
val subunitToUnit: Long, | ||
val allowDecimal: Boolean = true | ||
) |
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
23 changes: 4 additions & 19 deletions
23
dataModule/src/main/java/com/aneonex/bitcoinchecker/datamodule/model/Ticker.kt
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,31 +1,16 @@ | ||
package com.aneonex.bitcoinchecker.datamodule.model | ||
|
||
class Ticker { | ||
companion object { | ||
const val NO_DATA = -1 | ||
} | ||
|
||
@kotlin.jvm.JvmField | ||
var bid: Double = NO_DATA.toDouble() | ||
|
||
@kotlin.jvm.JvmField | ||
var ask: Double = NO_DATA.toDouble() | ||
|
||
@kotlin.jvm.JvmField | ||
var vol: Double = NO_DATA.toDouble() | ||
|
||
@kotlin.jvm.JvmField | ||
var volQuote: Double = NO_DATA.toDouble() | ||
|
||
@kotlin.jvm.JvmField | ||
var high: Double = NO_DATA.toDouble() | ||
|
||
@kotlin.jvm.JvmField | ||
var low: Double = NO_DATA.toDouble() | ||
|
||
@kotlin.jvm.JvmField | ||
var last: Double = NO_DATA.toDouble() | ||
|
||
@kotlin.jvm.JvmField | ||
var timestamp: Long = NO_DATA.toLong() | ||
|
||
companion object { | ||
const val NO_DATA = -1 | ||
} | ||
} |