mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-14 06:51:08 +01:00
Use Jid (and subclasses) from jxmpp-jid
Fixes SMACK-634
This commit is contained in:
parent
0ee2d9ed1e
commit
5bb4727c57
180 changed files with 1510 additions and 1032 deletions
|
|
@ -106,6 +106,24 @@ public class PrivacyItem {
|
|||
this.order = order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new privacy item.
|
||||
*
|
||||
* If the type is "jid", then the 'value' attribute MUST contain a valid Jabber ID.
|
||||
* If the type is "group", then the 'value' attribute SHOULD contain the name of a group
|
||||
* in the user's roster.
|
||||
* If the type is "subscription", then the 'value' attribute MUST be one of "both", "to",
|
||||
* "from", or "none".
|
||||
*
|
||||
* @param type the type.
|
||||
* @param value the value of the privacy item
|
||||
* @param allow true if this is an allow item
|
||||
* @param order the order of this privacy item
|
||||
*/
|
||||
public PrivacyItem(Type type, CharSequence value, boolean allow, long order) {
|
||||
this(type, value != null ? value.toString() : null, allow, order);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the action associated with the item, it MUST be filled and will allow or deny
|
||||
* the communication.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue