Platform.TryGetCurrentLocationAsync
All checks were successful
Dotnet build and test / build (pull_request) Successful in 8m30s
All checks were successful
Dotnet build and test / build (pull_request) Successful in 8m30s
This commit is contained in:
parent
55d305f295
commit
914e9486b5
11 changed files with 395 additions and 46 deletions
|
|
@ -286,12 +286,22 @@ public sealed class BillingApiClient
|
|||
return null;
|
||||
}
|
||||
|
||||
return new
|
||||
var payload = new Dictionary<string, object?>
|
||||
{
|
||||
Address = location.Address,
|
||||
Latitude = location.Latitude,
|
||||
Longitude = location.Longitude,
|
||||
["Address"] = location.Address,
|
||||
};
|
||||
|
||||
if (location.Latitude.HasValue)
|
||||
{
|
||||
payload["Latitude"] = location.Latitude.Value;
|
||||
}
|
||||
|
||||
if (location.Longitude.HasValue)
|
||||
{
|
||||
payload["Longitude"] = location.Longitude.Value;
|
||||
}
|
||||
|
||||
return payload;
|
||||
}
|
||||
|
||||
private sealed class BillingLocationResponse
|
||||
|
|
@ -351,4 +361,4 @@ public sealed class BillingApiClient
|
|||
{
|
||||
public long PrestationId { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue