Fix API back-compat; rename new result class to CompletedTeleport and move enum TeleportResult back to upper

This commit is contained in:
William committed 2022-10-19 01:27:06 +01:00
1 parent f9b04f8fbc
commit 681a74213c
8 files changed
+248 -238

No files matched your search

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