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

项目:EIM    文件:DiscussionHistory.java   
/**
 * Returns the History that manages the amount of discussion history provided on entering a 
 * room.
 * 
 * @return the History that manages the amount of discussion history provided on entering a 
 * room.
 */
MUCInitialPresence.History getMUCHistory() {
    // Return null if the history was not properly configured  
    if (!isConfigured()) {
        return null;
    }

    MUCInitialPresence.History mucHistory = new MUCInitialPresence.History();
    if (maxChars > -1) {
        mucHistory.setMaxChars(maxChars);
    }
    if (maxStanzas > -1) {
        mucHistory.setMaxStanzas(maxStanzas);
    }
    if (seconds > -1) {
        mucHistory.setSeconds(seconds);
    }
    if (since != null) {
        mucHistory.setSince(since);
    }
    return mucHistory;
}
项目:androidPN-client.    文件:DiscussionHistory.java   
/**
 * Returns the History that manages the amount of discussion history provided on entering a 
 * room.
 * 
 * @return the History that manages the amount of discussion history provided on entering a 
 * room.
 */
MUCInitialPresence.History getMUCHistory() {
    // Return null if the history was not properly configured  
    if (!isConfigured()) {
        return null;
    }

    MUCInitialPresence.History mucHistory = new MUCInitialPresence.History();
    if (maxChars > -1) {
        mucHistory.setMaxChars(maxChars);
    }
    if (maxStanzas > -1) {
        mucHistory.setMaxStanzas(maxStanzas);
    }
    if (seconds > -1) {
        mucHistory.setSeconds(seconds);
    }
    if (since != null) {
        mucHistory.setSince(since);
    }
    return mucHistory;
}
项目:xmppsupport_v2    文件:DiscussionHistory.java   
/**
 * Returns the History that manages the amount of discussion history
 * provided on entering a room.
 * 
 * @return the History that manages the amount of discussion history
 *         provided on entering a room.
 */
MUCInitialPresence.History getMUCHistory() {
    // Return null if the history was not properly configured
    if (!isConfigured()) {
        return null;
    }

    MUCInitialPresence.History mucHistory = new MUCInitialPresence.History();
    if (maxChars > -1) {
        mucHistory.setMaxChars(maxChars);
    }
    if (maxStanzas > -1) {
        mucHistory.setMaxStanzas(maxStanzas);
    }
    if (seconds > -1) {
        mucHistory.setSeconds(seconds);
    }
    if (since != null) {
        mucHistory.setSince(since);
    }
    return mucHistory;
}
项目:java-bells    文件:DiscussionHistory.java   
/**
 * Returns the History that manages the amount of discussion history provided on entering a 
 * room.
 * 
 * @return the History that manages the amount of discussion history provided on entering a 
 * room.
 */
MUCInitialPresence.History getMUCHistory() {
    // Return null if the history was not properly configured  
    if (!isConfigured()) {
        return null;
    }

    MUCInitialPresence.History mucHistory = new MUCInitialPresence.History();
    if (maxChars > -1) {
        mucHistory.setMaxChars(maxChars);
    }
    if (maxStanzas > -1) {
        mucHistory.setMaxStanzas(maxStanzas);
    }
    if (seconds > -1) {
        mucHistory.setSeconds(seconds);
    }
    if (since != null) {
        mucHistory.setSince(since);
    }
    return mucHistory;
}
项目:telegraph    文件:DiscussionHistory.java   
/**
 * Returns the History that manages the amount of discussion history provided on entering a 
 * room.
 * 
 * @return the History that manages the amount of discussion history provided on entering a 
 * room.
 */
MUCInitialPresence.History getMUCHistory() {
    // Return null if the history was not properly configured  
    if (!isConfigured()) {
        return null;
    }

    MUCInitialPresence.History mucHistory = new MUCInitialPresence.History();
    if (maxChars > -1) {
        mucHistory.setMaxChars(maxChars);
    }
    if (maxStanzas > -1) {
        mucHistory.setMaxStanzas(maxStanzas);
    }
    if (seconds > -1) {
        mucHistory.setSeconds(seconds);
    }
    if (since != null) {
        mucHistory.setSince(since);
    }
    return mucHistory;
}
项目:NewCommunication-Android    文件:DiscussionHistory.java   
/**
 * Returns the History that manages the amount of discussion history provided on entering a 
 * room.
 * 
 * @return the History that manages the amount of discussion history provided on entering a 
 * room.
 */
MUCInitialPresence.History getMUCHistory() {
    // Return null if the history was not properly configured  
    if (!isConfigured()) {
        return null;
    }

    MUCInitialPresence.History mucHistory = new MUCInitialPresence.History();
    if (maxChars > -1) {
        mucHistory.setMaxChars(maxChars);
    }
    if (maxStanzas > -1) {
        mucHistory.setMaxStanzas(maxStanzas);
    }
    if (seconds > -1) {
        mucHistory.setSeconds(seconds);
    }
    if (since != null) {
        mucHistory.setSince(since);
    }
    return mucHistory;
}