예제 #1
0
    public void Parse(string text)
    {
        int      current = 0;
        JsonNode js      = new JsonNode();

        js.Parse(text, ref current);
        JsonNode areas = js.Find("Areas");

        notice        = areas.Attribute("AreaNotice");
        defaultServer = areas.Attribute("DefaultServerID");
        areas.FindListAttribute("address", cdnlist);
        areas.FindListHasAttibuteName("ServerID", serverlist);
        //areas.FindListHasAttibuteName("ServerStatus", serverlist);

        JsonNode PushString = areas.Find("PushString");

        if (PushString != null)
        {
            PushString.FindListAttribute("content", Pushlist);
        }
    }