/// <summary> /// Leafを取得(過去ログ) /// </summary> private ComApi.RequestItems GetLeaf(WatchPage::CommentCompositeItems.Thread thread, WatchPage::BaseJson data, int _when) { var command = new ComApi.RequestItems(); command.thread_leaves = new ComApi.CommentItems.Leaf(); command.thread_leaves.thread = $"{thread.id}"; command.thread_leaves.user_id = $"{data.video.dmcInfo.user.user_id}"; int minute = (int)Math.Ceiling(data.video.duration / 60); command.thread_leaves.content = $"0-{minute}:100,1000,nicoru:100"; if (thread.isThreadkeyRequired) { command.thread_leaves.threadkey = crInfo.Threadkey; command.thread_leaves.force_184 = crInfo.Force184; } else { //command.thread_leaves.userkey = data.context.userkey; } command.thread_leaves.waybackkey = crInfo.WayBackKey; command.thread_leaves.whencom = _when; return(command); }
/// <summary> /// threadを取得(過去ログ) /// </summary> private ComApi.RequestItems GetThread(WatchPage::CommentCompositeItems.Thread thread, WatchPage::BaseJson data, int _when) { var command = new ComApi.RequestItems(); command.thread = new ComApi.CommentItems.Thread(); command.thread.thread = $"{thread.id}"; command.thread.fork = thread.fork; command.thread.user_id = $"{data.video.dmcInfo.user.user_id}"; //公式動画・ユーザー動画で分岐 if (thread.isThreadkeyRequired) { command.thread.threadkey = crInfo.Threadkey; command.thread.force_184 = crInfo.Force184; } else { //command.thread.userkey = data.context.userkey; } command.thread.waybackkey = crInfo.WayBackKey; command.thread.whencom = _when; return(command); }