2026-03-17 13:31:18 -07:00

75 lines
2.0 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package com.tridium.sys.service;
import javax.baja.sys.BIService;
import javax.baja.sys.BStruct;
import javax.baja.sys.Context;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;
/*
* Illegal identifiers - consider using --renameillegalidents true
*/
public final class BServiceEvent
extends BStruct {
public static final int SERVICE_ADDED = 0;
public static final int SERVICE_REMOVED = 1;
private static String[] ID_STRINGS = new String[]{"serviceAdded", "serviceRemoved"};
public static final Type TYPE;
private int id;
private BIService service;
static /* synthetic */ Class class$com$tridium$sys$service$BServiceEvent;
public final int getId() {
return this.id;
}
public final BIService getService() {
return this.service;
}
public final Type getServiceType() {
return this.service.getType();
}
public final String toString(Context context) {
return ID_STRINGS[this.id] + ' ' + this.getServiceType() + " \"" + this.service + '\"';
}
public final Type getType() {
return TYPE;
}
static /* synthetic */ Class class(String string, boolean bl) {
try {
Class<?> clazz = Class.forName(string);
if (!bl) {
clazz = clazz.getComponentType();
}
return clazz;
}
catch (ClassNotFoundException classNotFoundException) {
throw new NoClassDefFoundError(classNotFoundException.getMessage());
}
}
public BServiceEvent(int n, BIService bIService) {
this.id = n;
this.service = bIService;
}
public BServiceEvent() {
}
static {
Class clazz = class$com$tridium$sys$service$BServiceEvent;
if (clazz == null) {
clazz = class$com$tridium$sys$service$BServiceEvent = BServiceEvent.class("[Lcom.tridium.sys.service.BServiceEvent;", false);
}
TYPE = Sys.loadType(clazz);
}
}