mirror of
https://github.com/gabehf/tempus.git
synced 2026-03-15 02:06:00 -07:00
Implemented response status converter
This commit is contained in:
parent
5e9d1fd16d
commit
d4c98f5cf1
2 changed files with 27 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue