1(function (module) { 2 3 var apiService = function (httpService) { 4 5 var baseHost = apiHost; 6 7 8 function markNotificationAsOpen(notificationType, sourceId) { 9 return httpService.post(baseHost, "/InvestaApi/Notification/MarkNotificationAsOpen?notificationType=" + notificationType + "&sourceId=" + sourceId); 10 } 11 12 function markAllNotificationAsRead() { 13 return httpService.post(baseHost, "/InvestaApi/Notification/MarkAllNotificationAsRead"); 14 } 15 16 function getNewNotificationCount() { 17 return httpService.post(baseHost, "/InvestaApi/Notification/GetNewNotificationCount"); 18 } 19 20 function getAllNotificationCount() { 21 return httpService.post(baseHost, "/InvestaApi/Notification/GetAllNotificationCount"); 22 } 23 24 function getNewNotification(lastNotificationId, notifCategory) { 25 return httpService.post(baseHost, "/InvestaApi/Notification/GetNewNotification?lastNotificationId=" + lastNotificationId + "¬ifCategory=" + notifCategory); 26 } 27 28 function getOldNotification(lastNotificationId, notifCategory) { 29 return httpService.post(baseHost, "/InvestaApi/Notification/GetOldNotification?lastNotificationId=" + lastNotificationId + "¬ifCategory=" + notifCategory); 30 } 31 32 33 34 35 36 return { 37 markNotificationAsOpen: markNotificationAsOpen, 38 markAllNotificationAsRead: markAllNotificationAsRead, 39 getNewNotificationCount: getNewNotificationCount, 40 getAllNotificationCount: getAllNotificationCount, 41 getNewNotification: getNewNotification, 42 getOldNotification: getOldNotification 43 }; 44 }; 45 46 module.factory("notificationApiService", apiService); 47 48}(angular.module("investagramsAngularApp")));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.