|
|
@ -148,11 +148,11 @@ public class Status { |
|
|
|
public Type deserialize(JsonElement json, java.lang.reflect.Type classOfT, JsonDeserializationContext context) |
|
|
|
public Type deserialize(JsonElement json, java.lang.reflect.Type classOfT, JsonDeserializationContext context) |
|
|
|
throws JsonParseException { |
|
|
|
throws JsonParseException { |
|
|
|
switch(json.toString()) { |
|
|
|
switch(json.toString()) { |
|
|
|
case "image": |
|
|
|
case "\"image\"": |
|
|
|
return Type.IMAGE; |
|
|
|
return Type.IMAGE; |
|
|
|
case "gifv": |
|
|
|
case "\"gifv\"": |
|
|
|
return Type.GIFV; |
|
|
|
return Type.GIFV; |
|
|
|
case "video": |
|
|
|
case "\"video\"": |
|
|
|
return Type.VIDEO; |
|
|
|
return Type.VIDEO; |
|
|
|
default: |
|
|
|
default: |
|
|
|
return Type.UNKNOWN; |
|
|
|
return Type.UNKNOWN; |
|
|
|