Module it.auties.whatsapp4j
Package it.auties.whatsapp.model.chat
Class GroupMetadata.GroupMetadataBuilder
java.lang.Object
it.auties.whatsapp.model.chat.GroupMetadata.GroupMetadataBuilder
- Enclosing class:
- GroupMetadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private String
private String
private ZonedDateTime
private ZonedDateTime
private ContactJid
private ContactJid
private boolean
private List<GroupParticipant>
private Map<GroupSetting,
GroupPolicy> private String
private ContactJid
private ZonedDateTime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
community
(boolean community) Whether this group is the parent group of a communitydescription
(String description) The description of the group.descriptionId
(String descriptionId) The id of the description.ephemeralExpiration
(ZonedDateTime ephemeralExpiration) The expiration timer for this group if ephemeral messages are enabledfoundationTimestamp
(@NonNull ZonedDateTime foundationTimestamp) The timestamp for when this group was createdfounder
(ContactJid founder) The founder of the group.jid
(@NonNull ContactJid jid) The jid of the groupopenCommunity
(boolean openCommunity) Whether new members can join this community without an invitationparticipants
(@NonNull List<GroupParticipant> participants) The participants of this grouppolicies
(@NonNull Map<GroupSetting, GroupPolicy> policies) The policies that regulate this groupThe subject or name of the groupsubjectAuthor
(ContactJid subjectAuthor) The person who set the subject of this groupsubjectTimestamp
(@NonNull ZonedDateTime subjectTimestamp) The timestamp when the subject was last changedtoString()
-
Field Details
-
jid
-
subject
-
subjectAuthor
-
subjectTimestamp
-
foundationTimestamp
-
founder
-
description
-
descriptionId
-
policies
-
participants
-
ephemeralExpiration
-
community
private boolean community -
openCommunity
private boolean openCommunity
-
-
Constructor Details
-
GroupMetadataBuilder
GroupMetadataBuilder()
-
-
Method Details
-
jid
The jid of the group- Returns:
this
.
-
subject
The subject or name of the group- Returns:
this
.
-
subjectAuthor
The person who set the subject of this group- Returns:
this
.
-
subjectTimestamp
public GroupMetadata.GroupMetadataBuilder subjectTimestamp(@NonNull @NonNull ZonedDateTime subjectTimestamp) The timestamp when the subject was last changed- Returns:
this
.
-
foundationTimestamp
public GroupMetadata.GroupMetadataBuilder foundationTimestamp(@NonNull @NonNull ZonedDateTime foundationTimestamp) The timestamp for when this group was created- Returns:
this
.
-
founder
The founder of the group. For very old groups this property is not known.- Returns:
this
.
-
description
The description of the group. Some groups don't have a description.- Returns:
this
.
-
descriptionId
The id of the description. Only used by Whatsapp.- Returns:
this
.
-
policies
public GroupMetadata.GroupMetadataBuilder policies(@NonNull @NonNull Map<GroupSetting, GroupPolicy> policies) The policies that regulate this group- Returns:
this
.
-
participants
public GroupMetadata.GroupMetadataBuilder participants(@NonNull @NonNull List<GroupParticipant> participants) The participants of this group- Returns:
this
.
-
ephemeralExpiration
The expiration timer for this group if ephemeral messages are enabled- Returns:
this
.
-
community
Whether this group is the parent group of a community- Returns:
this
.
-
openCommunity
Whether new members can join this community without an invitation- Returns:
this
.
-
build
-
toString
-