Search in sources :

Example 1 with JingleS5BTransportInfo

use of org.jivesoftware.smackx.jingle.transports.jingle_s5b.elements.JingleS5BTransportInfo in project Smack by igniterealtime.

the class JingleS5BTransportSession method handleCandidateUsed.

public IQ handleCandidateUsed(Jingle jingle) {
    JingleS5BTransportInfo info = (JingleS5BTransportInfo) jingle.getContents().get(0).getTransport().getInfo();
    String candidateId = ((JingleS5BTransportInfo.CandidateUsed) info).getCandidateId();
    theirChoice = new UsedCandidate(ourProposal, ourProposal.getCandidate(candidateId), null);
    if (theirChoice.candidate == null) {
    /*
            TODO: Booooooh illegal candidateId!! Go home!!!!11elf
             */
    }
    connectIfReady();
    return IQ.createResultIQ(jingle);
}
Also used : JingleS5BTransportInfo(org.jivesoftware.smackx.jingle.transports.jingle_s5b.elements.JingleS5BTransportInfo)

Aggregations

JingleS5BTransportInfo (org.jivesoftware.smackx.jingle.transports.jingle_s5b.elements.JingleS5BTransportInfo)1