Author: ygrego Date: 2015-06-17 16:04:19 +0000 (Wed, 17 Jun 2015) New Revision: 1740 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1740 Log: Sometimes we can require a channel created from a configuration(JSON object). Modified: oipf/lib/js/utils/ChannelService.js Modified: oipf/lib/js/utils/ChannelService.js =================================================================== --- oipf/lib/js/utils/ChannelService.js 2015-06-17 15:43:39 UTC (rev 1739) +++ oipf/lib/js/utils/ChannelService.js 2015-06-17 16:04:19 UTC (rev 1740) @@ -68,4 +68,15 @@ name); } + getADvbTChannelWithConf(conf) { + if (conf) { + conf.idType = ID_DVB_T; + conf.onid = this.getNumber(); + conf.tsid = this.getNumber(); + conf.sid = this.getNumber(); + + return new Channel(conf); + } + } + }