BVB Source Codes

voltron Show services.js Source code

Return Download voltron: download services.js Source code - Download voltron Source code - Type:.js
  1. angular.module('VoltronApp.services', []).
  2. factory('voltronAPIservice', function($http)
  3. {
  4.     var voltronAPI = {};
  5.  
  6.     function createRequest(requestType, data) {
  7.         return {type: "request", request: requestType, data: data}
  8.     }
  9.  
  10.     voltronAPI.request = function(request) {
  11.         return $http({
  12.             method: 'POST',
  13.             url: '/api/request',
  14.             data: request
  15.         });
  16.     }
  17.  
  18.     voltronAPI.disassemble_format = function(data) {
  19.         res = voltronAPI.request(createRequest('disassemble', {address: address, count: count}))
  20.         return $http({
  21.             method: 'POST',
  22.             url: '/api/request',
  23.             data: createRequest('format_disasm', {disassembly: res.data.disassembly})
  24.         });
  25.     }
  26.  
  27.     voltronAPI.disassemble = function(address, count) {
  28.         return voltronAPI.request(createRequest('disassemble', {address: address, count: count}))
  29.     }
  30.  
  31.     voltronAPI.command = function(command) {
  32.         return voltronAPI.request(createRequest('command', {command: command}))
  33.     }
  34.  
  35.     voltronAPI.targets = function() {
  36.         return voltronAPI.request(createRequest('targets', {}))
  37.     }
  38.  
  39.     voltronAPI.memory = function(address, length) {
  40.         return voltronAPI.request(createRequest('memory', {address: address, length: length}))
  41.     }
  42.  
  43.     voltronAPI.registers = function() {
  44.         return voltronAPI.request(createRequest('registers', {}))
  45.     }
  46.  
  47.     voltronAPI.stack = function(length) {
  48.         return voltronAPI.request(createRequest('stack', {length: length}))
  49.     }
  50.  
  51.     voltronAPI.state = function() {
  52.         return voltronAPI.request(createRequest('state', {}))
  53.     }
  54.  
  55.     voltronAPI.version = function() {
  56.         return voltronAPI.request(createRequest('version', {}))
  57.     }
  58.  
  59.     return voltronAPI;
  60. });
  61.  
downloadservices.js Source code - Download voltron Source code
Related Source Codes/Software:
IGListKit - A data-driven UICollectionView framework for build... 2017-01-11
androidmvp - MVP Android Example 2017-01-11
svelte - The magical disappearing UI framework ... 2017-01-11
kcptun - A Simple UDP Tunnel Based On KCP 2017-01-11
poisontap - Exploits locked/password protected computers over ... 2017-01-10
ecma262 - Status, process, and documents for ECMA262 ... 2017-01-11
react-native-elements - React Native Elements UI Toolkit 2017-01-11
tensorflow-zh - Google new open source ai system TensorFlow Chines... 2017-01-11
forum - Blue light (the Lantern) the official BBS 2017-01-11
socketcluster - Highly scalable realtime framework ... 2017-01-11
discover-flask - Full Stack Web Development with Flask. ... 2017-01-12
spring-mvc-showcase - Demonstrates the features of the Spring MVC web fr... 2017-01-12
tushare - TuShare is a utility for crawling historical data ... 2017-01-12
raml-spec - RAML Specification http://raml.... 2017-01-12
android-stackblur - Android StackBlur is a library that can perform a ... 2017-01-12
sound-redux - A Soundcloud client built with React / Redux ... 2017-01-12
httpstat - curl statistics made simple 2017-01-12
vim - Vim configuration file and plug-ins 2017-01-12
appframework - The definitive HTML5 mobile javascript framework ... 2017-01-12
BaiduExporter - Assistant for Baidu to export download links to ar... 2017-01-11

 Back to top