From 1605bcd8e10549c43c905af6ec75470aeee3f536 Mon Sep 17 00:00:00 2001 From: CappielloAntonio Date: Sat, 5 Feb 2022 18:32:06 +0100 Subject: [PATCH] Refactor enum to string --- .../com/cappielloantonio/play/subsonic/models/Child.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java index 92df49b1..9621bfef 100644 --- a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Child.java @@ -63,8 +63,8 @@ public class Child { protected String albumId; @Attribute protected String artistId; - @Element - protected MediaType type; + @Attribute + protected String type; @Attribute protected Long bookmarkPosition; @Attribute @@ -72,7 +72,6 @@ public class Child { @Attribute protected Integer originalHeight; - @Attribute public String getId() { return id; } @@ -289,11 +288,11 @@ public class Child { this.artistId = value; } - public MediaType getType() { + public String getType() { return type; } - public void setType(MediaType value) { + public void setType(String value) { this.type = value; }