mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
36 lines
715 B
Java
36 lines
715 B
Java
package org.apollo.game.message.impl;
|
|
|
|
import org.apollo.game.message.Message;
|
|
import org.apollo.game.model.entity.setting.ServerStatus;
|
|
|
|
/**
|
|
* A {@link Message} sent to the client to update the friend server status.
|
|
*
|
|
* @author Major
|
|
*/
|
|
public final class FriendServerStatusMessage extends Message {
|
|
|
|
/**
|
|
* The status code of the friend server.
|
|
*/
|
|
private final int status;
|
|
|
|
/**
|
|
* Creates a new friend server status message.
|
|
*
|
|
* @param status The status.
|
|
*/
|
|
public FriendServerStatusMessage(ServerStatus status) {
|
|
this.status = status.getCode();
|
|
}
|
|
|
|
/**
|
|
* Gets the status code of the friend server.
|
|
*
|
|
* @return The status code.
|
|
*/
|
|
public int getStatusCode() {
|
|
return status;
|
|
}
|
|
|
|
} |