|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Abstract Transaction Interface is the required interface that all transactions that work with the SecurePlay library must support. This provides an alternate construction method for new transactions that does not require inheritance from the Abstract Transaction Class.
![]() |
![]() |
| Method Summary | |
boolean |
APIcompleteTransaction(java.lang.String pid)
This method allows the Transaction Master ONLY to complete the transaction. |
SPAbstractTransactionInterface |
APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
Creates a new instance of an Abstract Transaction class. |
java.lang.String |
APIgetAGE()
Gets the abstract game engine of this transaction. |
java.lang.String[] |
APIgetConfiguration()
Getter function that returns the property: configuration |
java.lang.String |
APIgetGameID()
Gets the game id associated with the transaction. |
java.lang.String |
APIgetMaster()
Gets the id of the master of the transaction. |
java.lang.String[] |
APIgetPlayerIDList()
Gets the player ids associated with the transaction. |
boolean |
APIgetPrivacyFlag()
Gets the privacy flag of this class. |
java.lang.String |
APIgetTransactionID()
Gets the transaction id. |
java.lang.String |
APIgetTransactionstatus()
Getter function that returns the property: transactionstatus |
java.lang.String |
APIgetTransactionType()
This method returns a String of the transactiontype. |
void |
APIsetTransactionID(java.lang.String tid)
Sets the transaction id to a specified id. |
void |
onincomingTransaction(SPMessageClass incoming)
This method handles the various incoming messages and passes them to the appropriate message type handler. |
void |
sendMessage(java.lang.String sender,
java.lang.String[] receivers,
boolean encryptflag,
boolean privateflag,
java.lang.String messagetype,
java.lang.String[] messagebody,
java.lang.String[] altmessage)
This method sends a message. |
| Method Detail |
public void onincomingTransaction(SPMessageClass incoming)
incoming - SPMessageClass - incomng message
public java.lang.String APIgetMaster()
public java.lang.String APIgetTransactionID()
public java.lang.String APIgetGameID()
public java.lang.String[] APIgetPlayerIDList()
public boolean APIgetPrivacyFlag()
public void APIsetTransactionID(java.lang.String tid)
tid - String - the id of the transaction.
public void sendMessage(java.lang.String sender,
java.lang.String[] receivers,
boolean encryptflag,
boolean privateflag,
java.lang.String messagetype,
java.lang.String[] messagebody,
java.lang.String[] altmessage)
sender - String - player id of the sender.receivers - String[] - player ids of recievers.encryptflag - boolean - enrypted flagprivateflag - boolean - private flagmessagetype - String - message typemessagebody - String[] - the message body as a stringaltmessage - String[] - alternative message.
public java.lang.String APIgetTransactionstatus()
public java.lang.String[] APIgetConfiguration()
public java.lang.String APIgetAGE()
public java.lang.String APIgetTransactionType()
public SPAbstractTransactionInterface APIcreateTransaction(SPGameInterface gameapiobj,
SPMessageClass message)
gameapiobj - SPGameInterface - game associated with this transaction.message - SPMessageClass - message that has all the config information.
public boolean APIcompleteTransaction(java.lang.String pid)
pid - String - id of the player who is completing the transaction, must be the master and internal.
|
SecurePlayLibray J2SE v2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||