|
||||||||||
| 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 | |
java.lang.String |
APIgetGameBlock()
Gets the gameblock of this transaction. |
SPAbstractTransactionInterface |
createTransaction(SPGameAPIInterface gameapiobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
This method creates a transaction. |
SPAbstractTransactionAPIInterface |
getClassAPI()
Gets this class's API |
java.lang.String[] |
getConfiguration()
Getter function that returns the property: configuration |
java.lang.String |
getGameID()
Gets the game id associated with the transaction. |
java.lang.String |
getMaster()
Gets the id of the master of the transaction. |
java.lang.String[] |
getPlayerIDList()
Gets the player ids associated with the transaction. |
boolean |
getPrivacyFlag()
Gets the privacy flag of this class. |
java.lang.String |
getTransactionID()
Gets the transaction id. |
java.lang.String |
getTransactionstatus()
Getter function that returns the property: transactionstatus |
java.lang.String |
getTransactionType()
This method returns a String of the transactiontype. |
boolean |
isPrivateflag()
Getter function that returns the property: privateflag |
boolean |
onincomingTransaction(SPMessageClass incoming)
This method handles the various incoming messages and passes them to the appropriate message type handler. |
boolean |
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. |
void |
setTransactionID(java.lang.String tid)
Sets the transaction id to a specified id. |
boolean |
transComplete()
This method returns a flag for whether the transaction is currently in the "complete" state. |
| Method Detail |
public boolean onincomingTransaction(SPMessageClass incoming)
incoming - SPMessageClass - incomng message
public java.lang.String getMaster()
public java.lang.String getTransactionID()
public SPAbstractTransactionAPIInterface getClassAPI()
public java.lang.String getGameID()
public java.lang.String[] getPlayerIDList()
public boolean getPrivacyFlag()
public boolean transComplete()
public void setTransactionID(java.lang.String tid)
tid - String - the id of the transaction.
public boolean 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 boolean isPrivateflag()
public java.lang.String getTransactionstatus()
public java.lang.String[] getConfiguration()
public java.lang.String APIgetGameBlock()
public java.lang.String getTransactionType()
public SPAbstractTransactionInterface createTransaction(SPGameAPIInterface gameapiobj,
java.lang.String master,
java.lang.String[] playerIDList,
boolean privateflag,
java.lang.String transactionID)
gameapiobj - master - playerIDList - privateflag - transactionID -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||