mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-08 11:31:22 -04:00
api fixes
This commit is contained in:
1 parent
7dc13a9a26
commit
dacd24a8e5
8 files changed
+191
-204
No files matched your search
@@ -8,6 +8,7 @@ import lombok.Value;
|
||||
import lombok.extern.jackson.Jacksonized;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class ConnectionInfoExchange extends BeaconInterface<ConnectionInfoExchange.Request> {
|
||||
@@ -22,13 +23,22 @@ public class ConnectionInfoExchange extends BeaconInterface<ConnectionInfoExchan
|
||||
@Value
|
||||
public static class Request {
|
||||
@NonNull
|
||||
UUID connection;
|
||||
List<UUID> connections;
|
||||
}
|
||||
|
||||
@Jacksonized
|
||||
@Builder
|
||||
@Value
|
||||
public static class Response {
|
||||
@NonNull
|
||||
List<@NonNull InfoResponse> infos;
|
||||
}
|
||||
|
||||
|
||||
@Jacksonized
|
||||
@Builder
|
||||
@Value
|
||||
public static class InfoResponse {
|
||||
@NonNull
|
||||
UUID connection;
|
||||
|
||||
@@ -52,5 +62,8 @@ public class ConnectionInfoExchange extends BeaconInterface<ConnectionInfoExchan
|
||||
|
||||
@NonNull
|
||||
Instant lastModified;
|
||||
|
||||
@NonNull
|
||||
Object state;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,6 @@
|
||||
package io.xpipe.beacon.api;
|
||||
|
||||
import io.xpipe.beacon.BeaconInterface;
|
||||
import io.xpipe.core.store.StorePath;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.NonNull;
|
||||
import lombok.Value;
|
||||
@@ -37,23 +35,6 @@ public class ConnectionQueryExchange extends BeaconInterface<ConnectionQueryExch
|
||||
@Value
|
||||
public static class Response {
|
||||
@NonNull
|
||||
List<QueryResponse> found;
|
||||
}
|
||||
|
||||
@Jacksonized
|
||||
@Builder
|
||||
@Value
|
||||
public static class QueryResponse {
|
||||
@NonNull
|
||||
UUID connection;
|
||||
|
||||
@NonNull
|
||||
StorePath category;
|
||||
|
||||
@NonNull
|
||||
StorePath name;
|
||||
|
||||
@NonNull
|
||||
String type;
|
||||
List<@NonNull UUID> found;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user