package com.eu.habbo.messages.outgoing.users; import com.eu.habbo.messages.ServerMessage; import com.eu.habbo.messages.outgoing.MessageComposer; import com.eu.habbo.messages.outgoing.Outgoing; import java.util.List; public class ChangeNameCheckResultComposer extends MessageComposer { public static final int AVAILABLE = 0; public static final int TOO_SHORT = 2; public static final int TOO_LONG = 3; public static final int NOT_VALID = 4; public static final int TAKEN_WITH_SUGGESTIONS = 5; public static final int DISABLED = 6; private final int status; private final String name; private final List suggestions; public ChangeNameCheckResultComposer(int status, String name, List suggestions) { this.status = status; this.name = name; this.suggestions = suggestions; } @Override public ServerMessage compose() { this.response.init(Outgoing.UnknownComposer_2698); this.response.appendInt(this.status); this.response.appendString(name); this.response.appendInt(this.suggestions.size()); for (String suggestion : suggestions) { this.response.appendString(suggestion); } return this.response; } }