diff --git a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java index 3cca38f4..577894cd 100644 --- a/app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java +++ b/app/src/main/java/com/cappielloantonio/play/subsonic/models/Error.java @@ -1,45 +1,28 @@ package com.cappielloantonio.play.subsonic.models; +import com.cappielloantonio.play.subsonic.utils.converter.ErrorCodeConverter; +import com.tickaroo.tikxml.annotation.Attribute; +import com.tickaroo.tikxml.annotation.Xml; + +@Xml public class Error { + @Attribute(converter = ErrorCodeConverter.class) protected ErrorCode code; + @Attribute protected String message; - /** - * Gets the value of the code property. - * - * @return possible object is - * {@link ErrorCode } - */ public ErrorCode getCode() { return code; } - /** - * Sets the value of the code property. - * - * @param value allowed object is - * {@link ErrorCode } - */ public void setCode(ErrorCode value) { this.code = value; } - /** - * Gets the value of the message property. - * - * @return possible object is - * {@link String } - */ public String getMessage() { return message; } - /** - * Sets the value of the message property. - * - * @param value allowed object is - * {@link String } - */ public void setMessage(String value) { this.message = value; }