1 26 27 29 package de.nava.informa.impl.basic; 30 31 import de.nava.informa.core.ChannelSubscriptionIF; 32 import de.nava.informa.core.ChannelIF; 33 34 39 public class ChannelSubscription implements ChannelSubscriptionIF, 40 java.io.Serializable { 41 42 private ChannelIF channel; 43 private boolean active; 44 private int updateInterval; 45 46 51 public ChannelSubscription(ChannelIF channel) { 52 this(channel, false, 3 * 60 * 60); 53 } 54 55 public ChannelSubscription(ChannelIF channel, boolean active, int interval) { 56 this.channel = channel; 57 this.active = active; 58 this.updateInterval = interval; 59 } 60 61 65 public ChannelIF getChannel() { 66 return channel; 67 } 68 69 public void setChannel(ChannelIF channel) { 70 this.channel = channel; 71 } 72 73 public boolean isActive() { 74 return active; 75 } 76 77 public void setActive(boolean active) { 78 this.active = active; 79 } 80 81 public int getUpdateInterval() { 82 return updateInterval; 83 } 84 85 public void setUpdateInterval(int interval) { 86 this.updateInterval = interval; 87 } 88 89 } 90 | Popular Tags |