Author: ygrego Date: 2015-04-02 14:56:53 +0000 (Thu, 02 Apr 2015) New Revision: 1057 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1057 Log: Addition of property "getNumber" and method "getADvbTChannel". Modified: oipf/js/utils/ChannelService.js Modified: oipf/js/utils/ChannelService.js =================================================================== --- oipf/js/utils/ChannelService.js 2015-04-02 14:53:57 UTC (rev 1056) +++ oipf/js/utils/ChannelService.js 2015-04-02 14:56:53 UTC (rev 1057) @@ -11,7 +11,7 @@ }, init: function(currentChannel) { - + this.getNumber = oipf.utils.generateFiveDigit.bind(null); var channelName = "ARTE"; var channelIdType = 12; var channelArte = new Channel(channelIdType, 52, 53, 54, channelName); @@ -34,6 +34,14 @@ nextChannel: function(channelCollection, channel) { return channelUtils.findChannel(channelCollection, channel, 1); + }, + + getADvbTChannel: function(name) { + return new Channel(ID_DVB_T, + this.getNumber(), + this.getNumber(), + this.getNumber(), + name); } });
participants (1)
-
ygregoï¼ users.nuiton.org