Rename name of elements in ServiceRequestType.
authorchanywa <cbible.kim@samsung.com>
Wed, 8 Feb 2017 03:47:53 +0000 (12:47 +0900)
committerchanywa <cbible.kim@samsung.com>
Wed, 8 Feb 2017 06:27:32 +0000 (15:27 +0900)
Change a attribute of Reqest.Cancel() to internal.

Change-Id: Ia3ac0bb382929506e40609958fd99f437015d937

packaging/csapi-maps.spec
src/Tizen.Maps/Tizen.Maps/MapServiceRequest.cs
src/Tizen.Maps/Tizen.Maps/RouteSearchRequest.cs
src/Tizen.Maps/Tizen.Maps/ServiceRequestType.cs

index fcfbc6e..1e521cd 100644 (file)
@@ -8,7 +8,7 @@
 
 Name:       csapi-maps
 Summary:    Tizen Map Service API for C#
-Version:    1.0.6
+Version:    1.0.7
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0
index ff5bfc0..0e51f01 100755 (executable)
@@ -65,10 +65,7 @@ namespace Tizen.Maps
             return await _requestTask.Task;
         }
 
-        /// <summary>
-        /// Cancel this map service request
-        /// </summary>
-        public void Cancel()
+        internal void Cancel()
         {
             if (_requestTask?.Task.IsCompleted == false)
             {
index 5b70bd9..d3bd456 100755 (executable)
@@ -32,7 +32,7 @@ namespace Tizen.Maps
         private Geocoordinates _from;
         private List<Geocoordinates> _waypoints = new List<Geocoordinates>();
 
-        internal RouteSearchRequest(MapService service, Geocoordinates from, Geocoordinates to) : this(service, ServiceRequestType.SearchByEndPoint)
+        internal RouteSearchRequest(MapService service, Geocoordinates from, Geocoordinates to) : this(service, ServiceRequestType.SearchRoute)
         {
             _to = to;
             _from = from;
@@ -42,7 +42,7 @@ namespace Tizen.Maps
                 errMessage = $"Failed to get route list for given origin {_from} and destination {_to}";
                 if (_waypoints?.Count == 0)
                 {
-                    _type = ServiceRequestType.SearchByEndPoint;
+                    _type = ServiceRequestType.SearchRoute;
                     errorCode = _service.handle.SearchRoute(_from.handle, _to.handle, _service.Preferences.handle, _routeCallback, IntPtr.Zero, out requestID);
                     if (errorCode.IsFailed() && errorCode != Interop.ErrorCode.Canceled)
                     {
@@ -51,7 +51,7 @@ namespace Tizen.Maps
                 }
                 else
                 {
-                    _type = ServiceRequestType.SearchWithWaypoints;
+                    _type = ServiceRequestType.SearchRouteWithWaypoints;
 
                     var waypoints = GetCoordinateListForWaypoints();
                     errorCode = _service.handle.SearchRouteWaypoints(waypoints, waypoints.Length, _service.Preferences.handle, _routeCallback, IntPtr.Zero, out requestID);
index ea79b5e..d3d0f04 100755 (executable)
@@ -66,11 +66,11 @@ namespace Tizen.Maps
         /// <summary>
         /// Service request to query <see cref="Route"/> information from a given origin <see cref="Geocoordinates"/> and destination <see cref="Geocoordinates"/> is allowed
         /// </summary>
-        SearchByEndPoint = Interop.ServiceType.SearchRoute,
+        SearchRoute = Interop.ServiceType.SearchRoute,
         /// <summary>
         /// Service request to query <see cref="Route"/> information passing through specified way-points <see cref="GeocoordinatesList"/> is allowed
         /// </summary>
-        SearchWithWaypoints = Interop.ServiceType.SearchRouteWaypoints,
+        SearchRouteWithWaypoints = Interop.ServiceType.SearchRouteWaypoints,
 
         /// <summary>
         /// Map view service is allowed