/** * 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; }
/** * 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; }