Fix enum values for IsSupported API
authorchanywa <cbible.kim@samsung.com>
Tue, 3 Jan 2017 12:09:39 +0000 (21:09 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 3 Jan 2017 12:09:39 +0000 (21:09 +0900)
Change-Id: Ic52e3fd3f9eb66c57624827ad0ae0f470dc9d78d

src/Tizen.Maps/Interop/Interop.Service.cs
src/Tizen.Maps/Tizen.Maps/MapService.cs

index dcd3aa8..067f441 100755 (executable)
@@ -34,7 +34,8 @@ internal static partial class Interop
         MultiReverseGeocode, // MAPS_SERVICE_MULTI_REVERSE_GEOCODE
         SearchPlaceList, // MAPS_SERVICE_SEARCH_PLACE_LIST
         SearchGetPlaceDetails, // MAPS_SERVICE_SEARCH_GET_PLACE_DETAILS
-        View, // MAPS_SERVICE_VIEW
+
+        View = 0x100, // MAPS_SERVICE_VIEW
         ViewSnapshot, // MAPS_SERVICE_VIEW_SNAPSHOT
     }
 
@@ -53,7 +54,8 @@ internal static partial class Interop
         RoutePath, // MAPS_ROUTE_PATH
         RouteSegmentsPath, // MAPS_ROUTE_SEGMENTS_PATH
         RouteSegmentsManeuvers, // MAPS_ROUTE_SEGMENTS_MANEUVERS
-        ViewTraffic, // MAPS_VIEW_TRAFFIC
+
+        ViewTraffic = 0x100, // MAPS_VIEW_TRAFFIC
         ViewPublicTransit, // MAPS_VIEW_PUBLIC_TRANSIT
         ViewBuilding, // MAPS_VIEW_BUILDING
         ViewScalebar, // MAPS_VIEW_SCALEBAR
index 87aee1f..28bb23b 100755 (executable)
@@ -191,8 +191,8 @@ namespace Tizen.Maps
         {
             bool result;
             var err = Interop.Service.ProviderIsServiceSupported(handle, (Interop.ServiceType)type, out result);
-            err.WarnIfFailed(string.Format("Failed to get if {0} is supported", type));
-            return (err.IsSuccess()) ? result : false;
+            err.ThrowIfFailed(string.Format("Failed to get if {0} is supported", type));
+            return result;
         }
 
         /// <summary>
@@ -204,8 +204,8 @@ namespace Tizen.Maps
         {
             bool result;
             var err = Interop.Service.ProviderIsDataSupported(handle, (Interop.ServiceData)data, out result);
-            err.WarnIfFailed(string.Format("Failed to get if {0} data is supported", data));
-            return (err.IsSuccess()) ? result : false;
+            err.ThrowIfFailed(string.Format("Failed to get if {0} data is supported", data));
+            return result;
         }
 
         /// <summary>