You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RoomsDataAccess.js 647B

123456789101112131415161718192021
  1. (function()
  2. {
  3. angular.module('appSdk')
  4. .factory('RoomsDataAccess', ['$q', 'RequestDataAccess', function ($q, RequestDataAccess) {
  5. var DataAccess = {};
  6. DataAccess.getRootRooms = function(promise)
  7. {
  8. return RequestDataAccess.get("/api/room/getrootrooms", null, promise);
  9. };
  10. DataAccess.getFreeRooms = function(data, promise)
  11. {
  12. return RequestDataAccess.get("/api/room/getfree/" + data.begin + "/" +
  13. data.end + "/" + data.root_room, null, promise);
  14. };
  15. return DataAccess;
  16. }]);
  17. })();