mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
25 lines
653 B
Java
25 lines
653 B
Java
package org.asamk.signal;
|
|
|
|
import org.asamk.signal.dbus.DbusUtils;
|
|
|
|
public class DbusConfig {
|
|
|
|
private static final String SIGNAL_BUSNAME = "org.asamk.Signal";
|
|
private static final String SIGNAL_OBJECT_BASE_PATH = "/org/asamk/Signal";
|
|
|
|
public static String getBusname() {
|
|
return SIGNAL_BUSNAME;
|
|
}
|
|
|
|
public static String getObjectPath() {
|
|
return getObjectPath(null);
|
|
}
|
|
|
|
public static String getObjectPath(String account) {
|
|
if (account == null) {
|
|
return SIGNAL_OBJECT_BASE_PATH;
|
|
}
|
|
|
|
return SIGNAL_OBJECT_BASE_PATH + "/" + DbusUtils.makeValidObjectPathElement(account);
|
|
}
|
|
}
|