46 lines
6.6 KiB
C#
46 lines
6.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FoxTube.Background
|
|
{
|
|
public static class ToastTemplates
|
|
{
|
|
public static string Comment =
|
|
@"<toast launch='action=openThread&threadId=92187'>
|
|
<visual>
|
|
<binding template='ToastGeneric'>
|
|
<image placement='appLogoOverride' hint-crop='circle' src='Assets/Icons/Profile.png'/>
|
|
<text>[ChannelName] posted a new comment</text>
|
|
<text>[VideoName]</text>
|
|
</binding>
|
|
</visual>
|
|
|
|
<actions>
|
|
<input id='textBox' type='text' placeHolderContent='Send a reply'/>
|
|
|
|
<action content='Send' imageUri='Assets/Icons/Send.png'
|
|
hint-inputId='textBox' activationType='background'
|
|
arguments='action=reply&threadId=92187'/>
|
|
|
|
<action content='Like'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
<action content='Go to comment'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
</actions>
|
|
</toast>";
|
|
public static string Video =
|
|
@"<toast launch='action=viewPhoto&photoId=92187'>
|
|
<visual>
|
|
<binding template='ToastGeneric'>
|
|
<image placement='appLogoOverride' hint-crop='circle' src='Assets/Icons/Profile.png'/>
|
|
<text>[ChannelName] uploaded a new video</text>
|
|
<text>[VideoName]</text>
|
|
<image src='Assets/videoThumbSample.png'/>
|
|
</binding>
|
|
</visual>
|
|
|
|
<actions>
|
|
<action
|
|
content='Watch later'
|
|
activationType='background'
|
|
arguments='likePhoto&photoId=92187'/>
|
|
<action
|
|
content='Go to channel'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
</actions>
|
|
</toast>";
|
|
public static string Post =
|
|
@"<toast launch='action=openThread&threadId=92187'>
|
|
<visual>
|
|
<binding template='ToastGeneric'>
|
|
<image placement='hero' src='Assets/videoThumbSample.png'/>
|
|
<image placement='appLogoOverride' hint-crop='circle' src='Assets/Icons/Profile.png'/>
|
|
<text>[ChannelName]</text>
|
|
<text hint-maxLines='5'>[PostContent]</text>
|
|
</binding>
|
|
</visual>
|
|
|
|
<actions>
|
|
<input id='textBox' type='text' placeHolderContent='Leave a comment'/>
|
|
<action
|
|
content='Send'
|
|
imageUri='Assets/Icons/send.png'
|
|
hint-inputId='textBox'
|
|
activationType='background'
|
|
arguments='action=reply&threadId=92187'/>
|
|
|
|
<action
|
|
content='Like post'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
<action
|
|
content='Go to full post'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
</actions>
|
|
</toast>";
|
|
public static string Internal =
|
|
@"<toast launch='action=openThread&threadId=92187'>
|
|
<visual>
|
|
<binding template='ToastGeneric'>
|
|
<image placement='hero' src='Assets/AnnouncementThumb.png'/>
|
|
<image placement='appLogoOverride' hint-crop='circle' src='Assets/LogoAvatar.png'/>
|
|
<text>[Header]</text>
|
|
</binding>
|
|
</visual>
|
|
|
|
<actions>
|
|
<action content='Watch full post'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
<action content='Manage notifications'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
</actions>
|
|
</toast>";
|
|
public static string Download =
|
|
@"<toast launch='action=viewPhoto&photoId=92187'>
|
|
<visual>
|
|
<binding template='ToastGeneric'>
|
|
<image placement='appLogoOverride' hint-crop='circle' src='Assets/Icons/Profile.png'/>
|
|
<text>Downloading a video...</text>
|
|
<text>[VideoName]</text>
|
|
<progress
|
|
title='[ChannelName]'
|
|
value='{progressValue}'
|
|
valueStringOverride='[Percentage]'
|
|
status='[Quality]'/>
|
|
</binding>
|
|
</visual>
|
|
|
|
<actions>
|
|
<action
|
|
content='Pause'
|
|
activationType='background'
|
|
arguments='likePhoto&photoId=92187'/>
|
|
<action
|
|
content='Cancel'
|
|
activationType='background'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
</actions>
|
|
</toast>";
|
|
public static string DownloadComplete =
|
|
@"<toast launch='action=viewPhoto&photoId=92187'>
|
|
<visual>
|
|
<binding template='ToastGeneric'>
|
|
<image placement='appLogoOverride' hint-crop='circle' src='https://yt3.ggpht.com/-UOhOJaAitUc/AAAAAAAAAAI/AAAAAAAAAAA/z3WPfWpVuZw/s88-c-k-no-mo-rj-c0xffffff/photo.jpg'/>
|
|
<text>Download complete</text>
|
|
<text>Subnautica - SAY GOODBYE TO SUBNAUTICA! We're Back Home! - Subnautica Ending (Full Release Gameplay)</text>
|
|
</binding>
|
|
</visual>
|
|
|
|
<actions>
|
|
<action
|
|
content='Play'
|
|
activationType='background'
|
|
arguments='likePhoto&photoId=92187'/>
|
|
|
|
<action
|
|
content='Open folder'
|
|
activationType='background'
|
|
arguments='action=commentPhoto&photoId=92187'/>
|
|
</actions>
|
|
</toast>";
|
|
}
|
|
}
|