Examples of NfcSender


Examples of nfc.sample.tictactoe.nfc.NfcSender

        nfc_manager = ReaderWriterManager.getInstance();
    }

    public void sendMasterBid(ProtocolMessageMasterBid my_bid) throws NFCException {
        Utilities.log("XXXX sending master bid:" + my_bid.toString());
        sender = new NfcSender(my_bid);
        status_monitor = new SnepCallBack(game_message_processor);
        push_id = ndef_push_manager.pushNDEF(sender, status_monitor);
        last_message_type_sent = Constants.PROTOCOL_MASTER_BID;
        Utilities.log("XXXX push_id=" + push_id);
    }
View Full Code Here

Examples of nfc.sample.tictactoe.nfc.NfcSender

    public void prepareTurnOver(ProtocolMessageTurnOver turn_over) throws NFCException {
        Utilities.log("XXXX prepareTurnOver:" + turn_over.toString());
        nfc_manager.removeNDEFMessageListener(NDEFRecord.TNF_EXTERNAL, Constants.SNEP_DOMAIN + ":" + Constants.SNEP_TYPE);
        listening = false;
        sender = new NfcSender(turn_over);
        status_monitor = new SnepCallBack(game_message_processor);
        push_id = ndef_push_manager.pushNDEF(sender, status_monitor);
        last_message_type_sent = Constants.PROTOCOL_TURN_OVER;
    }
View Full Code Here

Examples of nfc.sample.tictactoe.nfc.NfcSender

        last_message_type_sent = Constants.PROTOCOL_TURN_OVER;
    }

    public void resetBidState(ProtocolMessageResetBidState reset) throws NFCException {
        Utilities.log("XXXX sending reset bid state message:" + reset.toString());
        sender = new NfcSender(reset);
        status_monitor = new SnepCallBack(game_message_processor);
        push_id = ndef_push_manager.pushNDEF(sender, status_monitor);
        last_message_type_sent = Constants.PROTOCOL_RESET_BID_STATE;
        Utilities.log("XXXX push_id=" + push_id);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.