示例#1
0
        public string GetUrl(URLTypeCodeType urlTypeCodeType, string param1)
        {
            UrlLink link = this.FirstOrDefault(u => u.UrlType == urlTypeCodeType);

            if (link == null)
            {
                return(null);
            }

            return(String.Format("{0}{1}", link.Url, param1));
        }
示例#2
0
        public string GetUrl(URLTypeCodeType urlTypeCodeType)
        {
            UrlLink link = this.FirstOrDefault(u => u.UrlType == urlTypeCodeType);

            if (link == null)
            {
                return(null);
            }

            return(link.Url);
        }
        /// <summary>
        ///
        /// </summary>
        public URLDetailsType getURLDetailsBySiteAndURLType(SiteCodeType site, URLTypeCodeType URLType)
        {
            Hashtable detailsMap = (Hashtable)_SiteRelatedDetailsMapsByName[DetailNameCodeType.URLDetails];

            if (!detailsMap.ContainsKey(site))
            {
                loadURLDetailsForSite(site);
            }
            Hashtable byURLTypeMap = (Hashtable)detailsMap[site];

            return((URLDetailsType)byURLTypeMap[URLType]);
        }
示例#4
0
 /// <summary>
 /// 
 /// </summary>
 public URLDetailsType getURLDetailsBySiteAndURLType(SiteCodeType site, URLTypeCodeType URLType)
 {
     Hashtable detailsMap = (Hashtable)_SiteRelatedDetailsMapsByName[DetailNameCodeType.URLDetails];
     if(!detailsMap.ContainsKey(site)) {
     loadURLDetailsForSite(site);
     }
     Hashtable byURLTypeMap = (Hashtable)detailsMap[site];
     return (URLDetailsType)byURLTypeMap[URLType];
 }