You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
507 B
16 lines
507 B
7 years ago
|
package com.xsn.explorer.parsers
|
||
|
|
||
|
import com.xsn.explorer.models.base.OrderingCondition
|
||
|
import com.xsn.explorer.models.fields.BalanceField
|
||
|
|
||
|
class BalanceOrderingParser extends FieldOrderingParser[BalanceField] {
|
||
|
|
||
|
override protected val defaultField = BalanceField.Available
|
||
|
|
||
|
override protected val defaultOrderingCondition: OrderingCondition = OrderingCondition.DescendingOrder
|
||
|
|
||
|
override protected def parseField(unsafeField: String): Option[BalanceField] = {
|
||
|
BalanceField.from(unsafeField)
|
||
|
}
|
||
|
}
|