示例#1
0
    private void test()
    {
        //test
        SFSObject monparam = new SFSObject();
        monparam.Put("n", "monparam");
        monparam.Put("t", "b");
        monparam.PutBool("v", false);
        SFSObject monparam2 = new SFSObject();
        monparam2.Put("n", "monparam2");
        monparam2.Put("t", "b");
        monparam2.PutBool("v", true);
        SFSObject monparam3 = new SFSObject();
        monparam3.Put("n", "monparam3");
        monparam3.Put("t", "mi");
        monparam3.Put("v", "5");
        monparam3.PutNumber("m", 1);
        SFSObject monaction = new SFSObject();
        monaction.Put("n", "monaction");
        monaction.Put("0", monparam);
        monaction.Put("1", monparam2);
        monaction.Put("2", monparam3);

        SFSObject monparam4 = new SFSObject();
        monparam4.Put("n", "monparam4");
        monparam4.Put("t", "b");
        monparam4.PutBool("v", false);
        SFSObject monparam5 = new SFSObject();
        monparam5.Put("n", "monparam5");
        monparam5.Put("t", "mi");
        monparam5.Put("v", "16");
        monparam5.PutNumber("m", -6);
        SFSObject monaction2 = new SFSObject();
        monaction2.Put("n", "monaction2");
        monaction2.Put("0", monparam4);
        monaction2.Put("1", monparam5);

        SFSObject monparam6 = new SFSObject();
        monparam6.Put("n", "monparam6");
        monparam6.Put("t", "b");
        monparam6.PutBool("v", true);
        SFSObject monparam7 = new SFSObject();
        monparam7.Put("n", "monparam7");
        monparam7.Put("t", "mi");
        monparam7.Put("v", "55");
        monparam7.PutNumber("m", -7);
        SFSObject monparam8 = new SFSObject();
        monparam8.Put("n", "monparam8");
        monparam8.Put("t", "b");
        monparam8.PutBool("v", false);
        SFSObject monparam9 = new SFSObject();
        monparam9.Put("n", "monparam9");
        monparam9.Put("t", "mi");
        monparam9.Put("v", "300");
        monparam9.PutNumber("m", 0);
        SFSObject monaction3 = new SFSObject();
        monaction3.Put("n", "monaction3");
        monaction3.Put("0", monparam6);
        monaction3.Put("1", monparam7);
        monaction3.Put("2", monparam8);
        monaction3.Put("3", monparam9);

        SFSObject monactionhierarchy = new SFSObject();
        monactionhierarchy.Put("0", monaction);
        monactionhierarchy.Put("2", monaction2);
        monactionhierarchy.Put("1", monaction3);

        SFSObject monactionlibrary = new SFSObject();
        SFSObject maliste = new SFSObject();
        maliste.Put("h", monactionhierarchy);
        maliste.Put("l", monactionlibrary);

        ReceiveActionList(maliste);
    }