mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-17 00:31:42 +02:00
.github
.idea
bld
lib
TweetLib.Browser
TweetLib.Browser.CEF
TweetLib.Communication
TweetLib.Core
Application
Features
Notifications
DesktopNotification.cs
INotificationInterface.cs
NotificationBridgeObject.cs
NotificationBrowser.Example.cs
NotificationBrowser.Screenshot.cs
NotificationBrowser.Tweet.cs
NotificationBrowser.cs
Plugins
TweetDeck
Twitter
BaseBrowser.cs
BaseContextMenu.cs
BaseResourceRequestHandler.cs
CommonBridgeObject.cs
FileDownloadManager.cs
ICommonInterface.cs
PropertyObjectScript.cs
Resources
Systems
App.cs
Lib.cs
TweetLib.Core.csproj
TweetLib.Utils
TweetTest.Browser.CEF
TweetTest.Core
TweetTest.Utils
linux
resources
windows
.gitattributes
.gitignore
LICENSE.md
README.md
TweetDuck.sln
TweetDuck.sln.DotSettings
Version.cs
global.json
26 lines
993 B
C#
26 lines
993 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using TweetLib.Browser.Base;
|
|
using TweetLib.Browser.Interfaces;
|
|
using TweetLib.Utils.Data;
|
|
|
|
namespace TweetLib.Core.Features.Notifications {
|
|
public abstract partial class NotificationBrowser {
|
|
public sealed class Screenshot : NotificationBrowser {
|
|
private readonly IEnumerable<InjectedString> notificationInjections;
|
|
|
|
public Screenshot(IBrowserComponent browserComponent, IEnumerable<InjectedString> notificationInjections) : base(browserComponent, CreateSetupObject) {
|
|
this.notificationInjections = notificationInjections;
|
|
}
|
|
|
|
public override string GetTweetHTML(DesktopNotification notification) {
|
|
return notification.GenerateHtml("td-screenshot", HeadLayout, App.UserConfiguration.CustomNotificationCSS, notificationInjections, Array.Empty<string>());
|
|
}
|
|
|
|
private static BrowserSetup CreateSetupObject(NotificationBrowser browser) {
|
|
return BaseBrowser.CreateSetupObject(browser.browserComponent);
|
|
}
|
|
}
|
|
}
|
|
}
|