Esempio n. 1
0
        /// <summary>
        /// 获取被评论对象
        /// </summary>
        /// <returns></returns>
        public CommentedObject GetCommentedObject()
        {
            ICommentUrlGetter urlGetter = CommentUrlGetterFactory.Get(this.TenantTypeId);

            if (urlGetter != null)
            {
                return(urlGetter.GetCommentedObject(this.CommentedObjectId));
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 获取被评论对象的Url
        /// </summary>
        /// <returns></returns>
        public string GetCommentedObjectUrl()
        {
            ICommentUrlGetter urlGetter = CommentUrlGetterFactory.Get(this.TenantTypeId);

            if (urlGetter != null)
            {
                return(urlGetter.GetCommentedObject(this.CommentedObjectId).DetailUrl);
            }
            else
            {
                return(string.Empty);
            }
        }