Exemplo n.º 1
0
    void NetTest()
    {
        NetworkService lcMyNetworkService = new NetworkService();
        RecordOBJ      lcRecordOBJ        = new RecordOBJ()
        {
            name = "Todd",
            age  = 300,
            city = "Nelson"
        };

        lcMyNetworkService.GetJson <RecordOBJ>("https://NewSimland.com/~todd/JSON", ReceiveARecord);


        lcMyNetworkService.PutJson <RecordOBJ>(lcRecordOBJ, "https://NewSimland.com/~todd/JSON", ReceiveARecord);

        lcMyNetworkService.PutJsonList <RecordOBJ>(lcRecordList, "https://NewSimland.com/~todd/JSON", ReceiveAListOfRecords);
    }
Exemplo n.º 2
0
 public void ReceiveARecord(RecordOBJ pObjRecordOBJ)
 {
     GameModel.DebugDisplay = pObjRecordOBJ.name;
 }