C# Class Wolfje.Plugins.SEconomy.Journal.XMLJournal.XmlTransactionJournal

Holds an XML representation of the SEconomy transaction journal.
Inheritance: ITransactionJournal
Afficher le fichier Open project: tylerjwatson/SEconomy Class Usage Examples

Méthodes publiques

Свойство Type Description
XmlSchemaVersion System.Version
__writeLock object

Private Properties

Свойство Type Description
BeginSourceTransaction ITransaction
FinishEndTransaction ITransaction
GZipDecompress System.IO.MemoryStream
NewJournal System.Xml.Linq.XDocument
TransferMaySucceed bool

Méthodes publiques

Méthode Description
AddBankAccount ( IBankAccount Account ) : IBankAccount
AddBankAccount ( string UserAccountName, long WorldID, BankAccountFlags Flags, string Description ) : IBankAccount
BackupJournal ( ) : void
BackupJournalAsync ( ) : Task
BindTransactions ( ITransaction &SourceTransaction, ITransaction &DestTransaction ) : void
CleanJournal ( PurgeOptions options ) : void
DeleteBankAccount ( long BankAccountK ) : void
DeleteBankAccountAsync ( long BankAccountK ) : Task
Dispose ( ) : void
DumpSummary ( ) : void
GetBankAccount ( long BankAccountK ) : IBankAccount
GetBankAccountByName ( string UserAccountName ) : IBankAccount
GetBankAccountList ( long BankAccountK ) : IEnumerable
GetWorldAccount ( ) : IBankAccount

Returns a world account for the current running world. If it does not exist, one gets created and then returned.

LoadJournal ( ) : bool
LoadJournalAsync ( ) : Task
RandomString ( int Size ) : string

Thread-safely generates a random sequence of characters

SaveJournal ( ) : void
SaveJournalAsync ( ) : Task
SquashJournalAsync ( ) : Task
TransferBetween ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : BankTransferEventArgs
TransferBetweenAsync ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : Task
XmlTransactionJournal ( SEconomy Parent, string JournalSavePath ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
JournalBackupTimer_Elapsed ( object sender, System e ) : void

Occurs when the journal backup timer fires, and performs a journal save.

Private Methods

Méthode Description
BeginSourceTransaction ( long BankAccountK, Money Amount, string Message ) : ITransaction
FinishEndTransaction ( long SourceBankTransactionKey, IBankAccount ToAccount, Money Amount, string Message ) : ITransaction
GZipDecompress ( byte CompressedData ) : MemoryStream

Delfates a GZip byte array and returns the uncompressed data.

NewJournal ( ) : System.Xml.Linq.XDocument
TransferMaySucceed ( IBankAccount FromAccount, IBankAccount ToAccount, Money MoneyNeeded, Journal Options ) : bool

Method Details

AddBankAccount() public méthode

public AddBankAccount ( IBankAccount Account ) : IBankAccount
Account IBankAccount
Résultat IBankAccount

AddBankAccount() public méthode

public AddBankAccount ( string UserAccountName, long WorldID, BankAccountFlags Flags, string Description ) : IBankAccount
UserAccountName string
WorldID long
Flags BankAccountFlags
Description string
Résultat IBankAccount

BackupJournal() public méthode

public BackupJournal ( ) : void
Résultat void

BackupJournalAsync() public méthode

public BackupJournalAsync ( ) : Task
Résultat Task

BindTransactions() public méthode

public BindTransactions ( ITransaction &SourceTransaction, ITransaction &DestTransaction ) : void
SourceTransaction ITransaction
DestTransaction ITransaction
Résultat void

CleanJournal() public méthode

public CleanJournal ( PurgeOptions options ) : void
options PurgeOptions
Résultat void

DeleteBankAccount() public méthode

public DeleteBankAccount ( long BankAccountK ) : void
BankAccountK long
Résultat void

DeleteBankAccountAsync() public méthode

public DeleteBankAccountAsync ( long BankAccountK ) : Task
BankAccountK long
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DumpSummary() public méthode

public DumpSummary ( ) : void
Résultat void

GetBankAccount() public méthode

public GetBankAccount ( long BankAccountK ) : IBankAccount
BankAccountK long
Résultat IBankAccount

GetBankAccountByName() public méthode

public GetBankAccountByName ( string UserAccountName ) : IBankAccount
UserAccountName string
Résultat IBankAccount

GetBankAccountList() public méthode

public GetBankAccountList ( long BankAccountK ) : IEnumerable
BankAccountK long
Résultat IEnumerable

GetWorldAccount() public méthode

Returns a world account for the current running world. If it does not exist, one gets created and then returned.
public GetWorldAccount ( ) : IBankAccount
Résultat IBankAccount

JournalBackupTimer_Elapsed() protected méthode

Occurs when the journal backup timer fires, and performs a journal save.
protected JournalBackupTimer_Elapsed ( object sender, System e ) : void
sender object
e System
Résultat void

LoadJournal() public méthode

public LoadJournal ( ) : bool
Résultat bool

LoadJournalAsync() public méthode

public LoadJournalAsync ( ) : Task
Résultat Task

RandomString() public static méthode

Thread-safely generates a random sequence of characters
public static RandomString ( int Size ) : string
Size int
Résultat string

SaveJournal() public méthode

public SaveJournal ( ) : void
Résultat void

SaveJournalAsync() public méthode

public SaveJournalAsync ( ) : Task
Résultat Task

SquashJournalAsync() public méthode

public SquashJournalAsync ( ) : Task
Résultat Task

TransferBetween() public méthode

public TransferBetween ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : BankTransferEventArgs
FromAccount IBankAccount
ToAccount IBankAccount
Amount Money
Options BankAccountTransferOptions
TransactionMessage string
JournalMessage string
Résultat BankTransferEventArgs

TransferBetweenAsync() public méthode

public TransferBetweenAsync ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : Task
FromAccount IBankAccount
ToAccount IBankAccount
Amount Money
Options BankAccountTransferOptions
TransactionMessage string
JournalMessage string
Résultat Task

XmlTransactionJournal() public méthode

public XmlTransactionJournal ( SEconomy Parent, string JournalSavePath ) : System
Parent SEconomy
JournalSavePath string
Résultat System

Property Details

XmlSchemaVersion public_oe property

Returns the version of the XML schema built into this dll
public Version,System XmlSchemaVersion
Résultat System.Version

__writeLock public_oe static_oe property

public static object __writeLock
Résultat object