mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-19 07:04:21 +01:00
Handle send failures as non fatal and return detailed results in json output
Fixes #348
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package org.asamk.signal.json;
|
||||
|
||||
import org.asamk.signal.manager.storage.recipients.RecipientAddress;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public record JsonRecipientAddress(String uuid, String number) {
|
||||
|
||||
public static JsonRecipientAddress from(RecipientAddress address) {
|
||||
return new JsonRecipientAddress(address.uuid().map(UUID::toString).orElse(null), address.number().orElse(null));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user