コード例 #1
0
        /// <summary>
        /// Retrieves a list of ChannelGroup's with the same KeywordID.
        /// </summary>
        public static List <ChannelGroup> RetrieveChannelGroups(int KeywordID)
        {
            if (KeywordID < 1)
            {
                return(null);
            }
            Key key = new Key(typeof(KeywordMap), true, "idKeyword", KeywordID);
            IList <KeywordMap>  list             = Broker.RetrieveList <KeywordMap>(key);
            List <ChannelGroup> channelGroupList = new List <ChannelGroup>();

            foreach (KeywordMap map in list)
            {
                if (map.IdChannelGroup > 0)
                {
                    ChannelGroup channelGroup = ChannelGroup.Retrieve(map.IdChannelGroup);
                    if (channelGroup != null)
                    {
                        channelGroupList.Add(channelGroup);
                    }
                }
            }
            return(channelGroupList);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 public ChannelGroup ReferencedChannelGroup()
 {
     return(ChannelGroup.Retrieve(IdChannelGroup));
 }