mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 11:57:18 +01:00
49 lines
1.2 KiB
Java
49 lines
1.2 KiB
Java
package org.apache.commons.net;
|
|
|
|
import java.util.EventObject;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes11.dex */
|
|
public class ProtocolCommandEvent extends EventObject {
|
|
private static final long serialVersionUID = 403743538418947240L;
|
|
private final String command;
|
|
private final boolean isCommand;
|
|
private final String message;
|
|
private final int replyCode;
|
|
|
|
public ProtocolCommandEvent(Object obj, String str, String str2) {
|
|
super(obj);
|
|
this.replyCode = 0;
|
|
this.message = str2;
|
|
this.isCommand = true;
|
|
this.command = str;
|
|
}
|
|
|
|
public String getCommand() {
|
|
return this.command;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return this.message;
|
|
}
|
|
|
|
public int getReplyCode() {
|
|
return this.replyCode;
|
|
}
|
|
|
|
public boolean isCommand() {
|
|
return this.isCommand;
|
|
}
|
|
|
|
public boolean isReply() {
|
|
return !isCommand();
|
|
}
|
|
|
|
public ProtocolCommandEvent(Object obj, int i, String str) {
|
|
super(obj);
|
|
this.replyCode = i;
|
|
this.message = str;
|
|
this.isCommand = false;
|
|
this.command = null;
|
|
}
|
|
}
|