using the new custom Json request
This commit is contained in:
parent
8f414dbfd5
commit
372261d262
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…
Add table
Add a link
Reference in a new issue