using the new custom Json request

main
Paul Schneider 10 years ago
parent 39f9157f8b
commit 4ae1eb34a4
1 changed files with 7 additions and 6 deletions

@ -55,10 +55,11 @@ namespace Yavsc.GoogleApis
/// <param name="entities">Entities.</param> /// <param name="entities">Entities.</param>
public static string [] CreateEntity( Entity[] entities ) { public static string [] CreateEntity( Entity[] entities ) {
string [] ans = null; string [] ans = null;
using (SimpleJsonPostMethod< Entity[] ,string []> wr =
new SimpleJsonPostMethod< Entity[] ,string[]> (googleMapTracksPath + "entities/create")) using (SimpleJsonPostMethod wr =
new SimpleJsonPostMethod (googleMapTracksPath + "entities/create"))
{ {
ans = wr.Invoke (entities); ans = wr.Invoke<string[]> (entities);
} }
return ans; return ans;
} }
@ -71,10 +72,10 @@ namespace Yavsc.GoogleApis
static Entity[] ListEntities (EntityQuery eq) static Entity[] ListEntities (EntityQuery eq)
{ {
Entity [] ans = null; Entity [] ans = null;
using (SimpleJsonPostMethod<EntityQuery,Entity[]> wr = using (SimpleJsonPostMethod wr =
new SimpleJsonPostMethod<EntityQuery,Entity[]> (googleMapTracksPath + "entities/create")) new SimpleJsonPostMethod (googleMapTracksPath + "entities/create"))
{ {
ans = wr.Invoke (eq); ans = wr.Invoke <Entity[]> (eq);
} }
return ans; return ans;
} }

Loading…