/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  android.util.Log
 *  java.lang.Exception
 *  java.lang.Object
 *  java.lang.String
 *  java.lang.StringBuilder
 *  java.util.ArrayList
 *  java.util.Iterator
 *  java.util.List
 *  org.apache.http.message.BasicNameValuePair
 */
package com.xinli.portalclient.util;

import android.util.Log;
import com.xinli.portalclient.model.TouchPoint;
import com.xinli.portalclient.util.AESByKey;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.http.message.BasicNameValuePair;

public class MessageContext {
    public static List keyStrReturn(String string2, String string3, String string4) {
        ArrayList arrayList = new ArrayList();
        try {
            Log.v((String)"Client", (String)(String.valueOf((Object)string2) + "jyangzi5@163.com"));
            arrayList.add((Object)new BasicNameValuePair("key", AESByKey.encryptToString(string2, "jyangzi5@163.com")));
            arrayList.add((Object)new BasicNameValuePair("username", string3));
            arrayList.add((Object)new BasicNameValuePair("password", AESByKey.encryptToString(string4, "pass012345678910")));
            Log.v((String)"Client", (String)AESByKey.encryptToString(string2, "jyangzi5@163.com"));
            return arrayList;
        }
        catch (Exception var4_4) {
            var4_4.printStackTrace();
            return arrayList;
        }
    }

    /*
     * Enabled aggressive block sorting
     */
    public static List paramStrReturn(int n, int n2, List<TouchPoint> list, List<TouchPoint> list2, String string2, String string3, String string4, String string5) {
        StringBuilder stringBuilder = new StringBuilder();
        Log.w((String)"\u8bf7\u6c42\u624b\u52bf\u7ec4\u88c5\u53c2\u6570 width=====", (String)String.valueOf((int)n));
        Log.w((String)"\u8bf7\u6c42\u624b\u52bf\u7ec4\u88c5\u53c2\u6570 height====", (String)String.valueOf((int)n2));
        stringBuilder.append("{").append(n).append(",").append(n2).append("}@");
        Iterator iterator = list.iterator();
        do {
            if (!iterator.hasNext()) break;
            TouchPoint touchPoint = (TouchPoint)iterator.next();
            stringBuilder.append("{").append(touchPoint.getX()).append(",").append(touchPoint.getY()).append(",").append(touchPoint.getEventTime()).append("}").append("#");
        } while (true);
        stringBuilder.append("@");
        Iterator iterator2 = list2.iterator();
        do {
            if (!iterator2.hasNext()) {
                ArrayList arrayList = new ArrayList();
                arrayList.add((Object)new BasicNameValuePair("xypoints", stringBuilder.toString()));
                Log.v((String)"Client", (String)(String.valueOf((Object)string2) + "jyangzi5@163.com"));
                arrayList.add((Object)new BasicNameValuePair("key", AESByKey.encryptToString(string2, "jyangzi5@163.com")));
                arrayList.add((Object)new BasicNameValuePair("username", string3));
                arrayList.add((Object)new BasicNameValuePair("password", AESByKey.encryptToString(string4, "pass012345678910")));
                arrayList.add((Object)new BasicNameValuePair("clientip", string5));
                arrayList.add((Object)new BasicNameValuePair("clientType", "android"));
                Log.v((String)"Client", (String)AESByKey.encryptToString(string2, "jyangzi5@163.com"));
                Log.v((String)"Client", (String)stringBuilder.toString());
                return arrayList;
            }
            TouchPoint touchPoint = (TouchPoint)iterator2.next();
            stringBuilder.append("{").append(touchPoint.getX()).append(",").append(touchPoint.getY()).append(",").append(touchPoint.getEventTime()).append("}").append("#");
        } while (true);
    }

    /*
     * Enabled aggressive block sorting
     */
    public static List paramStrReturn(int n, int n2, List<TouchPoint> list, List<TouchPoint> list2, String string2, String string3, String string4, String string5, String string6) {
        StringBuilder stringBuilder = new StringBuilder();
        Log.w((String)"\u8bf7\u6c42\u624b\u52bf\u7ec4\u88c5\u53c2\u6570 width=====", (String)String.valueOf((int)n));
        Log.w((String)"\u8bf7\u6c42\u624b\u52bf\u7ec4\u88c5\u53c2\u6570 height====", (String)String.valueOf((int)n2));
        stringBuilder.append("{").append(n).append(",").append(n2).append("}@");
        Iterator iterator = list.iterator();
        do {
            if (!iterator.hasNext()) break;
            TouchPoint touchPoint = (TouchPoint)iterator.next();
            stringBuilder.append("{").append(touchPoint.getX()).append(",").append(touchPoint.getY()).append(",").append(touchPoint.getEventTime()).append("}").append("#");
        } while (true);
        stringBuilder.append("@");
        Iterator iterator2 = list2.iterator();
        do {
            if (!iterator2.hasNext()) {
                ArrayList arrayList = new ArrayList();
                arrayList.add((Object)new BasicNameValuePair("xypoints", stringBuilder.toString()));
                Log.v((String)"Client", (String)(String.valueOf((Object)string2) + "jyangzi5@163.com"));
                arrayList.add((Object)new BasicNameValuePair("key", AESByKey.encryptToString(string2, "jyangzi5@163.com")));
                arrayList.add((Object)new BasicNameValuePair("username", string3));
                arrayList.add((Object)new BasicNameValuePair("password", AESByKey.encryptToString(string4, "pass012345678910")));
                arrayList.add((Object)new BasicNameValuePair("clientip", string5));
                arrayList.add((Object)new BasicNameValuePair("clientType", "android"));
                arrayList.add((Object)new BasicNameValuePair("clientmac", string6));
                Log.v((String)"Client", (String)AESByKey.encryptToString(string2, "jyangzi5@163.com"));
                Log.v((String)"Client", (String)stringBuilder.toString());
                return arrayList;
            }
            TouchPoint touchPoint = (TouchPoint)iterator2.next();
            stringBuilder.append("{").append(touchPoint.getX()).append(",").append(touchPoint.getY()).append(",").append(touchPoint.getEventTime()).append("}").append("#");
        } while (true);
    }
}

