// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.philips.lighting.hue.sdk.clip; import org.json.JSONObject; // Referenced classes of package com.philips.lighting.hue.sdk.clip: // PHCLIPParser1_0, PHCLIPParser1_1, PHCLIPParser public class PHParserFactory { static final int LOCAL_KEY = 4626; public PHParserFactory() { } private static String getBridgeSoftwareVersion(JSONObject jsonobject) { JSONObject jsonobject1 = jsonobject.optJSONObject("config"); jsonobject = null; if (jsonobject1 != null) { jsonobject = jsonobject1.optString("swversion"); } return jsonobject; } public static PHCLIPParser getParser(JSONObject jsonobject, int i) { if (Integer.parseInt(getBridgeSoftwareVersion(jsonobject)) <= 0x40a8d) { return PHCLIPParser1_0.getInstance(i); } else { return PHCLIPParser1_1.getInstance(i); } } }