2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.messages.outgoing.modtool;
|
|
|
|
|
|
|
|
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 BullyReportRequestComposer extends MessageComposer {
|
2018-07-06 15:30:00 +02:00
|
|
|
public static final int START_REPORT = 0;
|
|
|
|
public static final int ONGOING_HELPER_CASE = 1;
|
|
|
|
public static final int INVALID_REQUESTS = 2;
|
|
|
|
public static final int TOO_RECENT = 3;
|
|
|
|
|
|
|
|
private final int errorCode;
|
|
|
|
private final int errorCodeType;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public BullyReportRequestComposer(int errorCode, int errorCodeType) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.errorCode = errorCode;
|
|
|
|
this.errorCodeType = errorCodeType;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2019-05-26 20:14:53 +02:00
|
|
|
public ServerMessage compose() {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.response.init(Outgoing.BullyReportRequestComposer);
|
|
|
|
this.response.appendInt(this.errorCode);
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
if (this.errorCode == ONGOING_HELPER_CASE) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.response.appendInt(this.errorCodeType);
|
|
|
|
this.response.appendInt(1); //Timestamp
|
|
|
|
this.response.appendBoolean(true); //Pending guide session.
|
|
|
|
|
|
|
|
this.response.appendString("admin");
|
|
|
|
this.response.appendString("ca-1807-64.lg-3365-78.hr-3370-42-31.hd-3093-1359.ch-3372-65");
|
2019-05-26 20:14:53 +02:00
|
|
|
switch (this.errorCodeType) {
|
2018-07-06 15:30:00 +02:00
|
|
|
case 3:
|
2019-05-26 20:14:53 +02:00
|
|
|
this.response.appendString("room Name");
|
|
|
|
break;
|
2018-07-06 15:30:00 +02:00
|
|
|
case 1:
|
|
|
|
this.response.appendString("description");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//:test 1917 i:1 i:3 i:1 b:0 s:1 s:1 s:1
|
|
|
|
return this.response;
|
|
|
|
}
|
|
|
|
}
|