/// <summary> /// 获取被评论对象 /// </summary> /// <returns></returns> public CommentedObject GetCommentedObject() { ICommentUrlGetter urlGetter = CommentUrlGetterFactory.Get(this.TenantTypeId); if (urlGetter != null) { return(urlGetter.GetCommentedObject(this.CommentedObjectId)); } else { return(null); } }
/// <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); } }