当前位置: 首页>>代码示例>>Java>>正文


Java MultipleAddresses.Address方法代码示例

本文整理汇总了Java中org.jivesoftware.smackx.address.packet.MultipleAddresses.Address方法的典型用法代码示例。如果您正苦于以下问题:Java MultipleAddresses.Address方法的具体用法?Java MultipleAddresses.Address怎么用?Java MultipleAddresses.Address使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jivesoftware.smackx.address.packet.MultipleAddresses的用法示例。


在下文中一共展示了MultipleAddresses.Address方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTOAddresses

import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
 * Returns the list of {@link org.jivesoftware.smackx.address.packet.MultipleAddresses.Address}
 * that were the primary recipients of the packet.
 *
 * @return list of primary recipients of the packet.
 */
public List<MultipleAddresses.Address> getTOAddresses() {
    return extension.getAddressesOfType(MultipleAddresses.Type.to);
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:10,代码来源:MultipleRecipientInfo.java

示例2: getCCAddresses

import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
 * Returns the list of {@link org.jivesoftware.smackx.address.packet.MultipleAddresses.Address}
 * that were the secondary recipients of the packet.
 *
 * @return list of secondary recipients of the packet.
 */
public List<MultipleAddresses.Address> getCCAddresses() {
    return extension.getAddressesOfType(MultipleAddresses.Type.cc);
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:10,代码来源:MultipleRecipientInfo.java

示例3: getReplyRoom

import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
 * Returns the JID of a MUC room to which responses should be sent or <tt>null</tt>  if
 * no specific address was provided. When no specific address was provided then the reply
 * can be sent to any or all recipients. Otherwise, the user should join the specified room
 * and send the reply to the room.
 *
 * @return the JID of a MUC room to which responses should be sent or <tt>null</tt>  if
 *         no specific address was provided.
 */
public String getReplyRoom() {
    List<MultipleAddresses.Address> replyRoom = extension.getAddressesOfType(MultipleAddresses.Type.replyroom);
    return replyRoom.isEmpty() ? null : ((MultipleAddresses.Address) replyRoom.get(0)).getJid();
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:14,代码来源:MultipleRecipientInfo.java

示例4: getReplyAddress

import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
 * Returns the address to which all replies are requested to be sent or <tt>null</tt> if
 * no specific address was provided. When no specific address was provided then the reply
 * can be sent to any or all recipients.
 *
 * @return the address to which all replies are requested to be sent or <tt>null</tt> if
 *         no specific address was provided.
 */
public MultipleAddresses.Address getReplyAddress() {
    List<MultipleAddresses.Address> replyTo = extension.getAddressesOfType(MultipleAddresses.Type.replyto);
    return replyTo.isEmpty() ? null : (MultipleAddresses.Address) replyTo.get(0);
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:13,代码来源:MultipleRecipientInfo.java


注:本文中的org.jivesoftware.smackx.address.packet.MultipleAddresses.Address方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。