diff --git a/GoogleMapsApi.Test/IntegrationTests/DistanceMatrixTests.cs b/GoogleMapsApi.Test/IntegrationTests/DistanceMatrixTests.cs index 2d5eb67..8242cdb 100644 --- a/GoogleMapsApi.Test/IntegrationTests/DistanceMatrixTests.cs +++ b/GoogleMapsApi.Test/IntegrationTests/DistanceMatrixTests.cs @@ -218,7 +218,7 @@ static Uri onUriCreated(Uri uri) [Test] [Ignore("Need to fix it")] - public async Task ShouldPassRawDataToOnRawResponseRecivied() + public async Task ShouldPassRawDataToOnRawResponseReceived() { var request = new DistanceMatrixRequest { @@ -229,8 +229,8 @@ public async Task ShouldPassRawDataToOnRawResponseRecivied() var rawData = Array.Empty(); - void onRawResponseRecivied(byte[] data) => rawData = data; - GoogleMaps.DistanceMatrix.OnRawResponseRecivied += onRawResponseRecivied; + void onRawResponseReceived(byte[] data) => rawData = data; + GoogleMaps.DistanceMatrix.OnRawResponseReceived += onRawResponseReceived; try { @@ -242,7 +242,7 @@ public async Task ShouldPassRawDataToOnRawResponseRecivied() } finally { - GoogleMaps.DistanceMatrix.OnRawResponseRecivied -= onRawResponseRecivied; + GoogleMaps.DistanceMatrix.OnRawResponseReceived -= onRawResponseReceived; } } } diff --git a/GoogleMapsApi/Engine/MapsAPIGenericEngine.cs b/GoogleMapsApi/Engine/MapsAPIGenericEngine.cs index eb0fd67..81f822e 100644 --- a/GoogleMapsApi/Engine/MapsAPIGenericEngine.cs +++ b/GoogleMapsApi/Engine/MapsAPIGenericEngine.cs @@ -11,14 +11,14 @@ namespace GoogleMapsApi.Engine { public delegate Uri UriCreatedDelegate(Uri uri); - public delegate void RawResponseReciviedDelegate(byte[] data); + public delegate void RawResponseReceivedDelegate(byte[] data); public abstract class MapsAPIGenericEngine where TRequest : MapsBaseRequest, new() where TResponse : IResponseFor { internal static event UriCreatedDelegate OnUriCreated; - internal static event RawResponseReciviedDelegate OnRawResponseRecivied; + internal static event RawResponseReceivedDelegate OnRawResponseReceived; internal static TimeSpan DefaultTimeout = TimeSpan.FromSeconds(100); protected internal static async Task QueryGoogleAPIAsync(TRequest request, TimeSpan timeout, CancellationToken token = default) diff --git a/GoogleMapsApi/EngineFacade.cs b/GoogleMapsApi/EngineFacade.cs index f7abc7f..6f4da6e 100644 --- a/GoogleMapsApi/EngineFacade.cs +++ b/GoogleMapsApi/EngineFacade.cs @@ -35,17 +35,17 @@ public event UriCreatedDelegate OnUriCreated } /// - /// Occurs when raw data from Google API recivied. + /// Occurs when raw data from Google API received. /// - public event RawResponseReciviedDelegate OnRawResponseRecivied + public event RawResponseReceivedDelegate OnRawResponseReceived { add { - MapsAPIGenericEngine.OnRawResponseRecivied += value; + MapsAPIGenericEngine.OnRawResponseReceived += value; } remove { - MapsAPIGenericEngine.OnRawResponseRecivied -= value; + MapsAPIGenericEngine.OnRawResponseReceived -= value; } } diff --git a/GoogleMapsApi/Entities/Directions/Response/DirectionsResponse.cs b/GoogleMapsApi/Entities/Directions/Response/DirectionsResponse.cs index 352b0d1..e7a5152 100644 --- a/GoogleMapsApi/Entities/Directions/Response/DirectionsResponse.cs +++ b/GoogleMapsApi/Entities/Directions/Response/DirectionsResponse.cs @@ -11,7 +11,7 @@ namespace GoogleMapsApi.Entities.Directions.Response public class DirectionsResponse : IResponseFor { /// - /// Error message recived from the server when the call fails + /// Error message received from the server when the call fails /// /// Error message [DataMember(Name = "error_message")] diff --git a/GoogleMapsApi/IEngineFacade.cs b/GoogleMapsApi/IEngineFacade.cs index 70e700a..fff5ef1 100644 --- a/GoogleMapsApi/IEngineFacade.cs +++ b/GoogleMapsApi/IEngineFacade.cs @@ -14,12 +14,12 @@ public interface IEngineFacade /// /// Occurs when the Url created. Can be used for override the Url. /// - event UriCreatedDelegate OnUriCreated; + public event UriCreatedDelegate OnUriCreated; /// - /// Occurs when raw data from Google API recivied. + /// Occurs when raw data from Google API received. /// - event RawResponseReciviedDelegate OnRawResponseRecivied; + public event RawResponseReceivedDelegate OnRawResponseReceived; /// /// Asynchronously query the Google Maps API using the provided request.