mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Use record classes
This commit is contained in:
parent
ce70a623c2
commit
ce7aa580b6
66 changed files with 754 additions and 1877 deletions
|
@ -66,21 +66,5 @@ public class GetUserStatusCommand implements JsonRpcLocalCommand {
|
|||
}
|
||||
}
|
||||
|
||||
private static final class JsonUserStatus {
|
||||
|
||||
public final String recipient;
|
||||
|
||||
public final String number;
|
||||
|
||||
public final String uuid;
|
||||
|
||||
public final boolean isRegistered;
|
||||
|
||||
public JsonUserStatus(String recipient, String number, String uuid, boolean isRegistered) {
|
||||
this.recipient = recipient;
|
||||
this.number = number;
|
||||
this.uuid = uuid;
|
||||
this.isRegistered = isRegistered;
|
||||
}
|
||||
}
|
||||
private record JsonUserStatus(String recipient, String number, String uuid, boolean isRegistered) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue