-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/PeterOrneholm/Orneholm.PE…
- Loading branch information
Showing
5 changed files
with
48 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Orneholm.PEAccountingNet.Models.Native; | ||
|
||
namespace Orneholm.PEAccountingNet.Models; | ||
public class Account | ||
{ | ||
public int AccountNr { get; set; } | ||
public string Description { get; set; } | ||
public long InBalance { get; set; } | ||
public long OutBalance { get; set; } | ||
public int DebitCount { get; set; } | ||
public int CreditCount { get; set; } | ||
public bool Disabled { get; set; } | ||
|
||
internal static Account FromNative(accountmetadata native) | ||
{ | ||
return new Account | ||
{ | ||
AccountNr = native.accountNr, | ||
Description = native.description, | ||
InBalance = native.inbalance, | ||
OutBalance = native.outbalance, | ||
DebitCount = native.debitcount, | ||
CreditCount = native.creditcount, | ||
Disabled = native.disabled, | ||
}; | ||
} | ||
} |
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