Example #1
0
        public static async Task <WorldBuilding> GetWorldBuildings()
        {
            RequestWorldBuildings r = new RequestWorldBuildings();

            r.access_token = "api_tester";
            var response = await AnyPlaceClient.PostAsJsonAsync(new Uri(ServerBaseUri, "anyplace/mapping/building/all"), r);

            var buildings = await response.Content.ReadAsAsync <WorldBuilding>();

            IsDirty = true;

            return(buildings);
        }
Example #2
0
        public static async Task<WorldBuilding> GetWorldBuildings()
        {
            RequestWorldBuildings r = new RequestWorldBuildings();
            r.access_token = "api_tester";
            var response = await AnyPlaceClient.PostAsJsonAsync(new Uri(ServerBaseUri, "anyplace/mapping/building/all"), r);

            var buildings = await response.Content.ReadAsAsync<WorldBuilding>();
            IsDirty = true;

            return buildings;
        }