added missing quotation marks in MediaTypeDeserializer
This commit is contained in:
parent
d5b4b0fe54
commit
4e4c39e58e
1 changed files with 3 additions and 3 deletions
|
@ -148,11 +148,11 @@ public class Status {
|
|||
public Type deserialize(JsonElement json, java.lang.reflect.Type classOfT, JsonDeserializationContext context)
|
||||
throws JsonParseException {
|
||||
switch(json.toString()) {
|
||||
case "image":
|
||||
case "\"image\"":
|
||||
return Type.IMAGE;
|
||||
case "gifv":
|
||||
case "\"gifv\"":
|
||||
return Type.GIFV;
|
||||
case "video":
|
||||
case "\"video\"":
|
||||
return Type.VIDEO;
|
||||
default:
|
||||
return Type.UNKNOWN;
|
||||
|
|
Loading…
Reference in a new issue