Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Balance.cs
1using System;
4
5namespace EDaler
6{
10 public class Balance
11 {
12 private readonly DateTime timestamp;
13 private readonly CaseInsensitiveString currency;
14 private readonly decimal amount;
15 private readonly decimal reserved;
16 private readonly AccountEvent @event;
17
26 public Balance(DateTime Timestamp, decimal Amount, decimal Reserved, CaseInsensitiveString Currency,
28 {
29 this.timestamp = Timestamp;
30 this.amount = Amount;
31 this.reserved = Reserved;
32 this.currency = Currency;
33 this.@event = Event;
34 }
35
39 public DateTime Timestamp => this.timestamp;
40
44 public decimal Amount => this.amount;
45
49 public decimal Reserved => this.reserved;
50
54 public CaseInsensitiveString Currency => this.currency;
55
59 public AccountEvent Event => this.@event;
60 }
61}
Account event
Definition: AccountEvent.cs:16
Contains information about a balance.
Definition: Balance.cs:11
CaseInsensitiveString Currency
Currency of amount.
Definition: Balance.cs:54
AccountEvent Event
Any account event associated to the balance message.
Definition: Balance.cs:59
decimal Amount
Amount at given point in time.
Definition: Balance.cs:44
decimal Reserved
Reserved amount, that the user cannot use directly.
Definition: Balance.cs:49
DateTime Timestamp
Timestamp of balance.
Definition: Balance.cs:39
Balance(DateTime Timestamp, decimal Amount, decimal Reserved, CaseInsensitiveString Currency, AccountEvent Event)
Contains information about a balance.
Definition: Balance.cs:26
Represents a case-insensitive string.