mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Remove libsignal-service from manager lib API
This commit is contained in:
parent
9075cc1a30
commit
2ab42ca547
31 changed files with 269 additions and 96 deletions
|
@ -5,8 +5,6 @@ import com.fasterxml.jackson.annotation.PropertyAccessor;
|
|||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
@ -59,10 +57,6 @@ public class Util {
|
|||
return f.toString();
|
||||
}
|
||||
|
||||
public static String getLegacyIdentifier(final SignalServiceAddress address) {
|
||||
return address.getNumber().or(() -> address.getUuid().toString());
|
||||
}
|
||||
|
||||
public static ObjectMapper createJsonObjectMapper() {
|
||||
var objectMapper = new ObjectMapper();
|
||||
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.PUBLIC_ONLY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue