mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-02 07:23:36 +00:00
Implemented response status converter
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.cappielloantonio.play.subsonic.utils.converter;
|
||||
|
||||
import com.cappielloantonio.play.subsonic.models.ResponseStatus;
|
||||
import com.tickaroo.tikxml.TypeConverter;
|
||||
|
||||
public class ResponseStatusConverter implements TypeConverter<ResponseStatus> {
|
||||
@Override
|
||||
public ResponseStatus read(String value) throws Exception {
|
||||
return new ResponseStatus(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String write(ResponseStatus value) throws Exception {
|
||||
return value.getValue();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user