[datacontrol][common] Simplify instance methods registration (2)
[platform/core/api/webapi-plugins.git] / src / download / download_api.js
index 2abd9a8..5ea0cf7 100755 (executable)
@@ -187,7 +187,7 @@ DownloadManager.prototype.start = function() {
         this.setListener(nativeParam.downloadId, args.downloadCallback);
     }
 
-    var result = native_.callSync('DownloadManager_start', nativeParam);
+    var result = native_.callSync('DownloadManagerStart', nativeParam);
 
     if (native_.isFailure(result)) {
         if ('NetworkError' === result.error.name) {
@@ -216,7 +216,7 @@ DownloadManager.prototype.cancel = function() {
             'the identifier does not match any download operation in progress'
         );
 
-    var result = native_.callSync('DownloadManager_cancel', nativeParam);
+    var result = native_.callSync('DownloadManagerCancel', nativeParam);
 
     if (native_.isFailure(result)) {
         throw native_.getErrorObject(result);
@@ -238,7 +238,7 @@ DownloadManager.prototype.pause = function() {
             'the identifier does not match any download operation in progress'
         );
 
-    var result = native_.callSync('DownloadManager_pause', nativeParam);
+    var result = native_.callSync('DownloadManagerPause', nativeParam);
 
     if (native_.isFailure(result)) {
         throw native_.getErrorObject(result);
@@ -260,7 +260,7 @@ DownloadManager.prototype.abandon = function() {
             'the identifier does not match any download operation in progress'
         );
 
-    var result = native_.callSync('DownloadManager_abandon', nativeParam);
+    var result = native_.callSync('DownloadManagerAbandon', nativeParam);
 
     if (native_.isFailure(result)) {
         throw native_.getErrorObject(result);
@@ -284,7 +284,7 @@ DownloadManager.prototype.resume = function() {
             'the identifier does not match any download operation in progress'
         );
 
-    var result = native_.callSync('DownloadManager_resume', nativeParam);
+    var result = native_.callSync('DownloadManagerResume', nativeParam);
 
     if (native_.isFailure(result)) {
         throw native_.getErrorObject(result);
@@ -306,7 +306,7 @@ DownloadManager.prototype.getState = function() {
             'the identifier does not match any download operation in progress'
         );
 
-    var result = native_.callSync('DownloadManager_getState', nativeParam);
+    var result = native_.callSync('DownloadManagerGetState', nativeParam);
 
     if (native_.isSuccess(result)) {
         return native_.getResultObject(result);
@@ -344,7 +344,7 @@ DownloadManager.prototype.getMIMEType = function() {
             'the identifier does not match any download operation in progress'
         );
 
-    var result = native_.callSync('DownloadManager_getMIMEType', nativeParam);
+    var result = native_.callSync('DownloadManagerGetMimeType', nativeParam);
 
     if (native_.isSuccess(result)) {
         return native_.getResultObject(result);