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 810B

1234567891011121314151617181920212223242526
  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. DataAccess.getAll = function(promise)
  16. {
  17. return RequestDataAccess.get("/api/room/getrooms", null, promise);
  18. };
  19. return DataAccess;
  20. }]);
  21. })();