text: /**
   * Scubawhere API Documentation
   * This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens.  [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API 
   *
   * OpenAPI spec version: 1.0.0
   * Contact: bryan@scubawhere.com
   *
   * NOTE: This class is auto generated by the swagger code generator program.
   * https://github.com/swagger-api/swagger-codegen.git
   * Do not edit the class manually.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  (function(root, factory) {
    if (typeof define === 'function' && define.amd) {
      // AMD. Register as an anonymous module.
      define(['ApiClient', 'model/ErrorModel', 'model/InlineResponse2006', 'model/InlineResponse2003', 'model/Boatroom'], factory);
    } else if (typeof module === 'object' && module.exports) {
      // CommonJS-like environments that support module.exports, like Node.
      module.exports = factory(require('../ApiClient'), require('../model/ErrorModel'), require('../model/InlineResponse2006'), require('../model/InlineResponse2003'), require('../model/Boatroom'));
    } else {
      // Browser globals (root is window)
      if (!root.ScubawhereApiDocumentation) {
        root.ScubawhereApiDocumentation = {};
      }
      root.ScubawhereApiDocumentation.BoatroomApi = factory(root.ScubawhereApiDocumentation.ApiClient, root.ScubawhereApiDocumentation.ErrorModel, root.ScubawhereApiDocumentation.InlineResponse2006, root.ScubawhereApiDocumentation.InlineResponse2003, root.ScubawhereApiDocumentation.Boatroom);
    }
  }(this, function(ApiClient, ErrorModel, InlineResponse2006, InlineResponse2003, Boatroom) {
    'use strict';
  
    /**
     * Boatroom service.
     * @module api/BoatroomApi
     * @version 1.0.0
     */
  
    /**
     * Constructs a new BoatroomApi. 
     * @alias module:api/BoatroomApi
     * @class
     * @param {module:ApiClient} apiClient Optional API client implementation to use,
     * default to {@link module:ApiClient#instance} if unspecified.
     */
    var exports = function(apiClient) {
      this.apiClient = apiClient || ApiClient.instance;
  
  
      /**
       * Callback function to receive the result of the createBoatroom operation.
       * @callback module:api/BoatroomApi~createBoatroomCallback
       * @param {String} error Error message, if any.
       * @param {module:model/InlineResponse2006} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Create a new boatroom
       * @param {String} name 
       * @param {Object} opts Optional parameters
       * @param {String} opts.description 
       * @param {module:api/BoatroomApi~createBoatroomCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link module:model/InlineResponse2006}
       */
      this.createBoatroom = function(name, opts, callback) {
        opts = opts || {};
        var postBody = null;
  
        // verify the required parameter 'name' is set
        if (name == undefined || name == null) {
          throw "Missing the required parameter 'name' when calling createBoatroom";
        }
  
  
        var pathParams = {
        };
        var queryParams = {
          'name': name,
          'description': opts['description']
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = InlineResponse2006;
  
        return this.apiClient.callApi(
          '/boatroom/add', 'POST',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, callback
        );
      }
  
      /**
       * Callback function to receive the result of the deleteBoatroom operation.
       * @callback module:api/BoatroomApi~deleteBoatroomCallback
       * @param {String} error Error message, if any.
       * @param {module:model/InlineResponse2003} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Delete a boatroom by ID
       * @param {Integer} id 
       * @param {module:api/BoatroomApi~deleteBoatroomCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link module:model/InlineResponse2003}
       */
      this.deleteBoatroom = function(id, callback) {
        var postBody = null;
  
        // verify the required parameter 'id' is set
        if (id == undefined || id == null) {
          throw "Missing the required parameter 'id' when calling deleteBoatroom";
        }
  
  
        var pathParams = {
        };
        var queryParams = {
          'id': id
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = InlineResponse2003;
  
        return this.apiClient.callApi(
          '/boatroom/delete', 'DELETE',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, callback
        );
      }
  
      /**
       * Callback function to receive the result of the editBoatroom operation.
       * @callback module:api/BoatroomApi~editBoatroomCallback
       * @param {String} error Error message, if any.
       * @param {module:model/InlineResponse2006} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Update a boatroom by ID
       * @param {Integer} id 
       * @param {String} name 
       * @param {Object} opts Optional parameters
       * @param {String} opts.description 
       * @param {module:api/BoatroomApi~editBoatroomCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link module:model/InlineResponse2006}
       */
      this.editBoatroom = function(id, name, opts, callback) {
        opts = opts || {};
        var postBody = null;
  
        // verify the required parameter 'id' is set
        if (id == undefined || id == null) {
          throw "Missing the required parameter 'id' when calling editBoatroom";
        }
  
        // verify the required parameter 'name' is set
        if (name == undefined || name == null) {
          throw "Missing the required parameter 'name' when calling editBoatroom";
        }
  
  
        var pathParams = {
        };
        var queryParams = {
          'id': id,
          'name': name,
          'description': opts['description']
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = InlineResponse2006;
  
        return this.apiClient.callApi(
          '/boatroom/edit', 'POST',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, callback
        );
      }
  
      /**
       * Callback function to receive the result of the getAllBoatrooms operation.
       * @callback module:api/BoatroomApi~getAllBoatroomsCallback
       * @param {String} error Error message, if any.
       * @param {Array.<module:model/Boatroom>} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Retrieve all boatrooms
       * @param {module:api/BoatroomApi~getAllBoatroomsCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link Array.<module:model/Boatroom>}
       */
      this.getAllBoatrooms = function(callback) {
        var postBody = null;
  
  
        var pathParams = {
        };
        var queryParams = {
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = [Boatroom];
  
        return this.apiClient.callApi(
          '/boatroom/all', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, callback
        );
      }
  
      /**
       * Callback function to receive the result of the getAllWithTrashedBoatrooms operation.
       * @callback module:api/BoatroomApi~getAllWithTrashedBoatroomsCallback
       * @param {String} error Error message, if any.
       * @param {Array.<module:model/Boatroom>} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Retrieve all boatrooms including any deleted models
       * @param {module:api/BoatroomApi~getAllWithTrashedBoatroomsCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link Array.<module:model/Boatroom>}
       */
      this.getAllWithTrashedBoatrooms = function(callback) {
        var postBody = null;
  
  
        var pathParams = {
        };
        var queryParams = {
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = [Boatroom];
  
        return this.apiClient.callApi(
          '/boatroom/all-with-trashed', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, callback
        );
      }
  
      /**
       * Callback function to receive the result of the getBoatroom operation.
       * @callback module:api/BoatroomApi~getBoatroomCallback
       * @param {String} error Error message, if any.
       * @param {module:model/InlineResponse2006} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Retrieve a boatroom by ID
       * @param {Integer} id 
       * @param {module:api/BoatroomApi~getBoatroomCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link module:model/InlineResponse2006}
       */
      this.getBoatroom = function(id, callback) {
        var postBody = null;
  
        // verify the required parameter 'id' is set
        if (id == undefined || id == null) {
          throw "Missing the required parameter 'id' when calling getBoatroom";
        }
  
  
        var pathParams = {
        };
        var queryParams = {
          'id': id
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = InlineResponse2006;
  
        return this.apiClient.callApi(
          '/boatroom', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, callback
        );
      }
    };
  
    return exports;
  }));
  