Revision 564bd9c9 src/main/scala/gr/grnet/aquarium/logic/events/WalletEntry.scala

b/src/main/scala/gr/grnet/aquarium/logic/events/WalletEntry.scala
6 6
/**
7 7
 *
8 8
 * @author Georgios Gousios <gousiosg@gmail.com>
9
 * @author Christos KK Loverdos <loverdos@gmail.com>
9 10
 */
10 11
case class WalletEntry(override val id: String,
11
                       override val timestamp: Long,
12
                       related: Array[String],
12
                       override val occurredMillis: Long,
13
                       sourceEventIDs: Array[String], // The events that triggered this WalletEntry
13 14
                       value: Float,
14 15
                       reason: String,
15 16
                       userId: String,
16 17
                       finalized: Boolean)
17
  extends AquariumEvent(id, timestamp) {
18
  extends AquariumEvent(id, occurredMillis) {
18 19

  
19
  assert(timestamp > 0)
20
  assert(occurredMillis > 0)
20 21
  assert(value > 0F)
21 22
  assert(!userId.isEmpty)
22 23

  

Also available in: Unified diff