parent
e02b1f6253
commit
955f396e90
@ -1,11 +1,19 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class Currency : RealmObject() { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The currency code of the currency, i.e. USD, EUR... |
||||
var code: String? = null |
||||
|
||||
// The rate of the currency with the main currency |
||||
var rate: Double? = null |
||||
|
||||
} |
||||
@ -1,10 +1,19 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class CustomField : RealmObject() { |
||||
// @todo |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the currency field |
||||
var name: String = "" |
||||
|
||||
// @todo |
||||
|
||||
|
||||
} |
||||
@ -1,10 +1,18 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
open class Game : RealmObject() { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the game |
||||
var name: String = "" |
||||
|
||||
// A shorter name for the game |
||||
var shortName: String? = null |
||||
|
||||
} |
||||
|
||||
@ -1,11 +1,16 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class HandHistory : RealmObject() { |
||||
// @todo |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// the date of the hand history |
||||
var date: Date = Date() |
||||
|
||||
} |
||||
@ -1,11 +1,22 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class Location : RealmObject() { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the location |
||||
var name: String = "" |
||||
|
||||
// the longitude of the location |
||||
var longitude: Double? = null |
||||
|
||||
// the latitude of the location |
||||
var latitude: Double? = null |
||||
|
||||
} |
||||
|
||||
@ -1,8 +1,15 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
open class Player : RealmObject() { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the player |
||||
var name: String = "" |
||||
|
||||
} |
||||
@ -1,15 +1,24 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
open class TimeFrame : RealmObject() { |
||||
|
||||
// A start date |
||||
var startDate: Date = Date() |
||||
|
||||
// An end date |
||||
var endDate: Date? = null |
||||
|
||||
// The break duration |
||||
var breakDuration: Double = 0.0 |
||||
|
||||
// the total duration |
||||
var duration: Double = 0.0 |
||||
|
||||
// indicates a state of pause |
||||
var paused: Boolean = false |
||||
|
||||
} |
||||
|
||||
@ -1,9 +1,15 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
open class TournamentFeature : RealmObject() { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the feature |
||||
var name: String = "" |
||||
|
||||
} |
||||
@ -1,14 +1,16 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class TournamentName() : RealmObject() { |
||||
|
||||
// constructor() : this() { |
||||
// |
||||
// } |
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the tournament |
||||
var name: String = "" |
||||
|
||||
} |
||||
|
||||
@ -1,18 +1,26 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class Transaction : RealmObject() { |
||||
var value: Double = 0.0 |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The amount of the transaction |
||||
var amount: Double = 0.0 |
||||
|
||||
// The date of the transaction |
||||
var date: Date = Date() |
||||
var comment: String? = null |
||||
|
||||
// The type of the transaction |
||||
var type: TransactionType? = null |
||||
|
||||
} |
||||
// A user comment |
||||
var comment: String = "" |
||||
|
||||
enum class TransactionKind { |
||||
WITHDRAWAL, |
||||
DEPOSIT |
||||
} |
||||
|
||||
|
||||
@ -1,13 +1,30 @@ |
||||
package net.pokeranalytics.android.model.realm |
||||
|
||||
import io.realm.RealmObject |
||||
import io.realm.annotations.PrimaryKey |
||||
import java.util.* |
||||
|
||||
|
||||
open class TransactionType : RealmObject() { |
||||
|
||||
@PrimaryKey |
||||
var id = UUID.randomUUID().toString() |
||||
|
||||
// The name of the transaction type |
||||
var name: String = "" |
||||
|
||||
// Whether or not the amount is added, or subtracted to the bankroll total |
||||
var additive: Boolean = false |
||||
|
||||
// Whether or not the type can be deleted by the user |
||||
var lock: Boolean = false |
||||
|
||||
// The predefined kind, if necessary, like: Withdrawal, deposit, or tips |
||||
var kind: Int? = null |
||||
|
||||
} |
||||
} |
||||
|
||||
enum class TransactionKind { |
||||
WITHDRAWAL, |
||||
DEPOSIT |
||||
} |
||||
|
||||
Loading…
Reference in new issue