C# 클래스 Wolfje.Plugins.SEconomy.Journal.XMLJournal.XmlTransactionJournal

Holds an XML representation of the SEconomy transaction journal.
상속: ITransactionJournal
파일 보기 프로젝트 열기: tylerjwatson/SEconomy 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
XmlSchemaVersion System.Version
__writeLock object

Private Properties

프로퍼티 타입 설명
BeginSourceTransaction ITransaction
FinishEndTransaction ITransaction
GZipDecompress System.IO.MemoryStream
NewJournal System.Xml.Linq.XDocument
TransferMaySucceed bool

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
JournalBackupTimer_Elapsed ( object sender, System e ) : void

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

비공개 메소드들

메소드 설명
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

메소드 상세

AddBankAccount() 공개 메소드

public AddBankAccount ( IBankAccount Account ) : IBankAccount
Account IBankAccount
리턴 IBankAccount

AddBankAccount() 공개 메소드

public AddBankAccount ( string UserAccountName, long WorldID, BankAccountFlags Flags, string Description ) : IBankAccount
UserAccountName string
WorldID long
Flags BankAccountFlags
Description string
리턴 IBankAccount

BackupJournal() 공개 메소드

public BackupJournal ( ) : void
리턴 void

BackupJournalAsync() 공개 메소드

public BackupJournalAsync ( ) : Task
리턴 Task

BindTransactions() 공개 메소드

public BindTransactions ( ITransaction &SourceTransaction, ITransaction &DestTransaction ) : void
SourceTransaction ITransaction
DestTransaction ITransaction
리턴 void

CleanJournal() 공개 메소드

public CleanJournal ( PurgeOptions options ) : void
options PurgeOptions
리턴 void

DeleteBankAccount() 공개 메소드

public DeleteBankAccount ( long BankAccountK ) : void
BankAccountK long
리턴 void

DeleteBankAccountAsync() 공개 메소드

public DeleteBankAccountAsync ( long BankAccountK ) : Task
BankAccountK long
리턴 Task

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

DumpSummary() 공개 메소드

public DumpSummary ( ) : void
리턴 void

GetBankAccount() 공개 메소드

public GetBankAccount ( long BankAccountK ) : IBankAccount
BankAccountK long
리턴 IBankAccount

GetBankAccountByName() 공개 메소드

public GetBankAccountByName ( string UserAccountName ) : IBankAccount
UserAccountName string
리턴 IBankAccount

GetBankAccountList() 공개 메소드

public GetBankAccountList ( long BankAccountK ) : IEnumerable
BankAccountK long
리턴 IEnumerable

GetWorldAccount() 공개 메소드

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

JournalBackupTimer_Elapsed() 보호된 메소드

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

LoadJournal() 공개 메소드

public LoadJournal ( ) : bool
리턴 bool

LoadJournalAsync() 공개 메소드

public LoadJournalAsync ( ) : Task
리턴 Task

RandomString() 공개 정적인 메소드

Thread-safely generates a random sequence of characters
public static RandomString ( int Size ) : string
Size int
리턴 string

SaveJournal() 공개 메소드

public SaveJournal ( ) : void
리턴 void

SaveJournalAsync() 공개 메소드

public SaveJournalAsync ( ) : Task
리턴 Task

SquashJournalAsync() 공개 메소드

public SquashJournalAsync ( ) : Task
리턴 Task

TransferBetween() 공개 메소드

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
리턴 BankTransferEventArgs

TransferBetweenAsync() 공개 메소드

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
리턴 Task

XmlTransactionJournal() 공개 메소드

public XmlTransactionJournal ( SEconomy Parent, string JournalSavePath ) : System
Parent SEconomy
JournalSavePath string
리턴 System

프로퍼티 상세

XmlSchemaVersion 공개적으로 프로퍼티

Returns the version of the XML schema built into this dll
public Version,System XmlSchemaVersion
리턴 System.Version

__writeLock 공개적으로 정적으로 프로퍼티

public static object __writeLock
리턴 object