2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.messages.outgoing.catalog;
|
|
|
|
|
|
|
|
import com.eu.habbo.messages.ServerMessage;
|
|
|
|
import com.eu.habbo.messages.outgoing.MessageComposer;
|
|
|
|
import com.eu.habbo.messages.outgoing.Outgoing;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public class NotEnoughPointsTypeComposer extends MessageComposer {
|
2018-07-06 15:30:00 +02:00
|
|
|
private final boolean isCredits;
|
|
|
|
private final boolean isPixels;
|
|
|
|
private final int pointsType;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public NotEnoughPointsTypeComposer(boolean isCredits, boolean isPixels, int pointsType) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.isCredits = isCredits;
|
|
|
|
this.isPixels = isPixels;
|
|
|
|
this.pointsType = pointsType;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2019-05-26 20:14:53 +02:00
|
|
|
public ServerMessage compose() {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.response.init(Outgoing.NotEnoughPointsTypeComposer);
|
|
|
|
this.response.appendBoolean(this.isCredits);
|
|
|
|
this.response.appendBoolean(this.isPixels);
|
|
|
|
this.response.appendInt(this.pointsType);
|
|
|
|
return this.response;
|
|
|
|
}
|
|
|
|
}
|