public JsonListEntry a(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) { if (jsonelement.isJsonObject()) { JsonObject jsonobject = jsonelement.getAsJsonObject(); JsonListEntry jsonlistentry = this.a.a(jsonobject); return jsonlistentry; } else { return null; } }
public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) { return this.a(jsonelement, type, jsondeserializationcontext); }
public UserCacheEntry a(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) { if (jsonelement.isJsonObject()) { JsonObject jsonobject = jsonelement.getAsJsonObject(); JsonElement jsonelement1 = jsonobject.get("name"); JsonElement jsonelement2 = jsonobject.get("uuid"); JsonElement jsonelement3 = jsonobject.get("expiresOn"); if (jsonelement1 != null && jsonelement2 != null) { String s = jsonelement2.getAsString(); String s1 = jsonelement1.getAsString(); Date date = null; if (jsonelement3 != null) { try { date = UserCache.a.parse(jsonelement3.getAsString()); } catch (ParseException parseexception) { date = null; } } if (s1 != null && s != null) { UUID uuid; try { uuid = UUID.fromString(s); } catch (Throwable throwable) { return null; } UserCacheEntry usercacheentry = new UserCacheEntry(this.a, new GameProfile(uuid, s1), date, (GameProfileLookup) null); return usercacheentry; } else { return null; } } else { return null; } } else { return null; } }