Class GroupJoinMessage
java.lang.Object
org.drasyl.node.plugin.groups.client.message.GroupsPluginMessage
org.drasyl.node.plugin.groups.client.message.GroupsClientMessage
org.drasyl.node.plugin.groups.client.message.GroupJoinMessage
This message is send by the groups client to the server to join a group.
This is an immutable object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringabstract ProofOfWorkabstract booleanisRenew()static GroupJoinMessageof(io.netty.buffer.ByteBuf byteBuf) static GroupJoinMessageof(Group group, String credentials, ProofOfWork proofOfWork, boolean renew) voidwriteTo(io.netty.buffer.ByteBuf out) Writes this message to the bufferout.Methods inherited from class org.drasyl.node.plugin.groups.client.message.GroupsPluginMessage
getGroup
-
Field Details
-
MIN_LENGTH
public static final int MIN_LENGTH- See Also:
-
-
Constructor Details
-
GroupJoinMessage
public GroupJoinMessage()
-
-
Method Details
-
of
public static GroupJoinMessage of(Group group, String credentials, ProofOfWork proofOfWork, boolean renew) -
of
-
isRenew
public abstract boolean isRenew() -
getCredentials
-
getProofOfWork
-
writeTo
public void writeTo(io.netty.buffer.ByteBuf out) Description copied from class:GroupsPluginMessageWrites this message to the bufferout.- Overrides:
writeToin classGroupsPluginMessage- Parameters:
out- writes this envelope to this buffer
-