Skip to content

Commit

Permalink
Updated templates to reflect fullupdate boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
tympanix committed Sep 5, 2016
1 parent 1ff54c3 commit 937b174
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/bittorrent/template/templateservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ angular.module('torrentApp').service('__serviceName__', ["$http", "$q", "__Torre
* Return any new information about torrents to be rendered in the GUI. Should return a
* promise with the required information to be updated. Will be executed by controllers
* very frequently. You can find a template of the data to be returned in the function.
* Here you will need:
* Whenever boolean fullupdate is true this function should return a full list of all
* the information from the client.
* Returnet information will have the following format:
* labels {array}: array of string of each label
* all {array}: array of objects inherited from 'AbstractTorrent' that are not currently known.
* This means they have just been added or never seen before since the last startup.
* changed {array}: array of objects inherited from 'AbstractTorrent' that have allready been seend before.
* This means they may contain partial information in which case they ar merged with any present infomation.
* deleted {array}: array of string containg the hashes of which torrents to be removed from the list in the GUI.
* @param {boolean} fullupdate
* @return {promise} data
*/
this.torrents = function() {
Expand Down

0 comments on commit 937b174

Please sign in to comment.