public async Task Report(Entities.Entry entry, string userName, ReportCategory category, string comment = "") { var url = $"{BaseUrl}/entry.report"; var contents = new Dictionary <string, string> { { "rks", RksForBookmark }, { "eid", entry.Id.ToString() }, { "name", userName }, { "category", category.GetHashCode().ToString() }, { "comment", comment } }; await PostAsync(url, contents, GetCookieHeader()); }
/// <summary> /// エントリーに対して指定ユーザーが付けたブックマークコメントのURLを取得する /// </summary> /// <param name="entry"></param> /// <param name="userName"></param> /// <returns></returns> public static string GetBookmarkUrl(Entities.Entry entry, string userName) { return(entry.GetBookmarkUrl(userName)); }
/// <summary> /// ブックマークコメント自身のURLを取得する /// </summary> /// <param name="entry"></param> /// <param name="bookmark"></param> /// <returns></returns> public static string GetBookmarkUrl(Entities.Entry entry, Entities.Bookmark bookmark) { return(entry.GetBookmarkUrl(bookmark)); }