Ejemplo n.º 1
0
        //  } ws_stations;

        public override bool get(string outStr, string args)
        {
            Track trk;

            Track[] stations;
            int     i;
            string  sep = wxPorting.T("{");

            outStr.append(wxPorting.T("{stations:n["));
            stations = Globals.get_station_list();
            if (stations != null)
            {
                for (i = 0; stations[i] != null; ++i)
                {
                    trk = stations[i];
                    outStr.append(sep);
                    json(outStr, wxPorting.T("name"), trk.station, true);
                    sep = wxPorting.T("},\n{");
                }
                outStr.append(wxPorting.T("}"));
            }
            outStr.append(wxPorting.T("\n]\n}\n"));
            return(true);
        }