}
String channelId=(String)in.readObject();
Channel ch = Channel.getChannel(channelServiceClassName, channelGroupId, null, channelId);
mChannel = new ChannelItem(ch);
}
else if (version < 5) {
Channel ch = Channel.readData(in, true);
mChannel = new ChannelItem(ch);
}
else {
mChannel = new ChannelItem(in,3);
}
}
boolean hasTitle = in.readBoolean();
if (hasTitle) {
mTitle = (String)in.readObject();
}
boolean hasTopic = in.readBoolean();
if (hasTopic) {
mTopic = (String)in.readObject();
}
if(version > 3) {
if(in.readBoolean()) {
mFilterName = (String)in.readObject();
}
}
mTimeFrom = in.readInt();
mTimeTo = in.readInt();
mDayOfWeek = in.readInt();
if(mChannel == null) {
mChannel = new ChannelItem(null);
}
}