{"size": 711, "ext": "js", "max_stars_repo_path": "lib/js/src/collections/CategoryCollection.js", "max_stars_repo_name": "jaymo107/vision", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/js/src/collections/CategoryCollection.js", "max_issues_repo_name": "jaymo107/vision", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/js/src/collections/CategoryCollection.js", "max_forks_repo_name": "jaymo107/vision", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.75, "max_line_length": 68, "alphanum_fraction": 0.6849507736}
import Backbone from 'backbone';
import Marionette from 'backbone.marionette';
import Category from '../models/Category';
/**
 * Categories
 */
export default Backbone.Collection.extend({
	url: 'http://iptv-svc-search.lancs.ac.uk/browse_ondemand.php',

	/** @type {Backbone.Model} The Model for the Programme structure */
	model: Category,

	initialize: function() {
		this.fetch({
			success: this.fetchSuccess,
			error: this.fetchError
		});
	},

	/**
	 * When the programmes have been successfully fetched from
	 * the vision server.
	 */
	fetchSuccess: function(data) {
		
	},

	/**
	 * When the programmes have failed to be fetched from
	 * the vision server.
	 */
	fetchError: function(data) {
		
	}

});