TeleportResult refactor, use record and bundle resolved information, separate TeleportState enum, deprecate relevant API

This commit is contained in:
William committed 2022-10-19 01:12:19 +01:00
1 parent 82d47f0878
commit 4164f07841
12 files changed
+285 -151

No files matched your search

@@ -23,7 +23,7 @@ public class MessagePayload {
*/
@Nullable
@SerializedName("teleport_result")
public TeleportResult teleportResult;
public TeleportResult.ResultState resultState;
/**
* A teleport request field
@@ -56,15 +56,15 @@ public class MessagePayload {
}
/**
* Returns a payload containing a {@link TeleportResult}
* Returns a payload containing a {@link TeleportResult.ResultState}
*
* @param teleportResult the teleport to send
* @param resultState the teleport to send
* @return a payload containing the teleport result
*/
@NotNull
public static MessagePayload withTeleportResult(@NotNull TeleportResult teleportResult) {
public static MessagePayload withTeleportResult(@NotNull TeleportResult.ResultState resultState) {
final MessagePayload payload = new MessagePayload();
payload.teleportResult = teleportResult;
payload.resultState = resultState;
return payload;
}