mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fix API back-compat; rename new result class to CompletedTeleport and move enum TeleportResult back to upper
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user