package com.weather.yogurt.lifequery.util;

/**
 * Created by Yogurt on 16/7/7.
 */
public class Utilty {

}

@@ -41,69 +41,2164 @@
 l;%0A%0A
-/**%0A * Created by Yogurt on 16/7/7.%0A */%0Apublic class Utilty %7B%0A
+import android.content.Context;%0Aimport android.content.SharedPreferences;%0Aimport android.preference.PreferenceManager;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0A/**%0A * Created by Yogurt on 16/7/7.%0A */%0Apublic class Utilty %7B%0A%0A    public static boolean parseShares(JSONObject object) %7B%0A%0A    %7D%0A%0A    public static boolean parseExpress(JSONObject object) %7B%0A%0A    %7D%0A%0A    public static boolean parseTrainTickets(JSONObject object) %7B%0A%0A    %7D%0A%0A    public static boolean parseTrademark(JSONObject object) %7B%0A%0A    %7D%0A%0A    public static boolean parseExchangeRate(JSONObject object) %7B%0A%0A    %7D%0A%0A    public static boolean parseAppleIMEINumber(JSONObject object) %7B%0A    %7D%0A%0A    public static boolean parseAttractionsTicketsPrice(JSONObject object) %7B%0A    %7D%0A%0A    public static boolean parsePerpetualCalendar(JSONObject object) %7B%0A%0A    %7D%0A%0A    public static boolean parseAppleSerialNumber(JSONObject object) %7B%0A    %7D%0A%0A    public static boolean parseBankCard(JSONObject object) %7B%0A    %7D%0A%0A    public static boolean parseZipCode(JSONObject object) %7B%0A    %7D%0A%0A    public static boolean parseIpAddress(JSONObject object) %7B%0A    %7D%0A%0A    public static boolean parsePhoneNumberOwnership(Context context, JSONObject object) throws JSONException %7B%0A        String errNum=object.getString(%22errNum%22);%0A        if (errNum.equals(%220%22))%7B%0A            if (object.getString(%22retMsg%22).equals(%22success%22))%7B%0A                JSONObject retData=object.getJSONObject(%22retData%22);%0A                SharedPreferences.Editor editor= PreferenceManager.getDefaultSharedPreferences(context).edit();%0A                editor.putString(%22phone%22,retData.getString(%22phone%22));%0A                editor.putString(%22prefix%22,retData.getString(%22prefix%22));%0A                editor.putString(%22supplier%22,retData.getString(%22supplier%22));%0A                editor.putString(%22province%22,retData.getString(%22province%22));%0A                editor.putString(%22city%22,retData.getString(%22city%22));%0A                editor.putString(%22suit%22,retData.getString(%22suit%22));%0A                editor.commit();%0A                return true;%0A            %7D%0A        %7Delse if (errNum.equals(%22-1%22))%7B%0A            return false;%0A        %7D%0A        return false;%0A    %7D
 %0A%7D%0A

add parse phone number method