@@ -0,0 +1,1578 @@
+package com.bricechou.weiboclient.model;%0A%0A%0Aimport android.text.TextUtils;%0A%0Aimport com.sina.weibo.sdk.openapi.models.User;%0A%0Aimport org.json.JSONArray;%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * Resolving the JSON type data about friendship list.%0A * To show the all current user friendship list.%0A *%0A * @author BriceChou%0A * @datetime 16-6-16 9:49%0A */%0A%0Apublic class UserList %7B%0A    public int totalNumber;%0A    public String nextCursor;%0A    public String previousCursor;%0A    public ArrayList%3CUser%3E userList;%0A%0A    public static UserList parse(String jsonString) %7B%0A        if (TextUtils.isEmpty(jsonString)) %7B%0A            return null;%0A        %7D%0A        UserList usersList = new UserList();%0A        try %7B%0A            JSONObject jsonObject = new JSONObject(jsonString);%0A            usersList.previousCursor = jsonObject.optString(%22previous_cursor%22, %220%22);%0A            usersList.nextCursor = jsonObject.optString(%22next_cursor%22, %220%22);%0A            usersList.totalNumber = jsonObject.optInt(%22total_number%22, 0);%0A            JSONArray jsonArray = jsonObject.optJSONArray(%22users%22);%0A            if (jsonArray != null && jsonArray.length() %3E 0) %7B%0A                int length = jsonArray.length();%0A                usersList.userList = new ArrayList%3CUser%3E(length);%0A                for (int ix = 0; ix %3C length; ix++) %7B%0A                    usersList.userList.add(User.parse(jsonArray.getJSONObject(ix)));%0A                %7D%0A            %7D%0A        %7D catch (JSONException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return usersList;%0A    %7D%0A%7D

update UserList code style