Esempio n. 1
0
        public async Task Add (IChannel channel, bool update = false)
        {
            // If we already have this feed, simply return
			if (mChannels.Cast<Channel>().Any(channel.Url.Equals))
                return;

			if(channel.Name == null){
				channel.Name = channel.Url;
			}

			mChannels.Add (channel);
			if (update) {
				bool res = await channel.RefreshAsync();
				if (res)
					MarkAsDirty();
			}

			NotifyAdd(channel);
		}
Esempio n. 2
0
 public void RefreshChannelActivated(IChannel channel)
 {
     if (channel != null) {
         channel.RefreshAsync();
     }
 }