Java 类org.jivesoftware.smackx.packet.PEPPubSub 实例源码

项目:EIM    文件:PEPManager.java   
/**
 * Publish an event.
 * 
 * @param item the item to publish.
 */
public void publish(PEPItem item) {
    // Create a new message to publish the event.
    PEPPubSub pubSub = new PEPPubSub(item);
    pubSub.setType(Type.SET);
    //pubSub.setFrom(connection.getUser());

    // Send the message that contains the roster
    connection.sendPacket(pubSub);
}
项目:androidPN-client.    文件:PEPManager.java   
/**
 * Publish an event.
 * 
 * @param item the item to publish.
 */
public void publish(PEPItem item) {
    // Create a new message to publish the event.
    PEPPubSub pubSub = new PEPPubSub(item);
    pubSub.setType(Type.SET);
    //pubSub.setFrom(connection.getUser());

    // Send the message that contains the roster
    connection.sendPacket(pubSub);
}
项目:xmppsupport_v2    文件:PEPManager.java   
/**
 * Publish an event.
 * 
 * @param item
 *            the item to publish.
 */
public void publish(PEPItem item) {
    // Create a new message to publish the event.
    PEPPubSub pubSub = new PEPPubSub(item);
    pubSub.setType(Type.SET);
    // pubSub.setFrom(connection.getUser());

    // Send the message that contains the roster
    connection.sendPacket(pubSub);
}
项目:java-bells    文件:PEPManager.java   
/**
 * Publish an event.
 * 
 * @param item the item to publish.
 */
public void publish(PEPItem item) {
    // Create a new message to publish the event.
    PEPPubSub pubSub = new PEPPubSub(item);
    pubSub.setType(Type.SET);
    //pubSub.setFrom(connection.getUser());

    // Send the message that contains the roster
    connection.sendPacket(pubSub);
}
项目:telegraph    文件:PEPManager.java   
/**
 * Publish an event.
 * 
 * @param item the item to publish.
 */
public void publish(PEPItem item) {
    // Create a new message to publish the event.
    PEPPubSub pubSub = new PEPPubSub(item);
    pubSub.setType(Type.SET);
    //pubSub.setFrom(connection.getUser());

    // Send the message that contains the roster
    connection.sendPacket(pubSub);
}
项目:NewCommunication-Android    文件:PEPManager.java   
/**
 * Publish an event.
 * 
 * @param item the item to publish.
 */
public void publish(PEPItem item) {
    // Create a new message to publish the event.
    PEPPubSub pubSub = new PEPPubSub(item);
    pubSub.setType(Type.SET);
    //pubSub.setFrom(connection.getUser());

    // Send the message that contains the roster
    connection.sendPacket(pubSub);
}