Added base decoding logic + notification logic.
This commit is contained in:
@@ -63,7 +63,7 @@ namespace BodyshopUploader.ViewModels
|
||||
if (_removeMonitoringPathCommand == null)
|
||||
{
|
||||
_removeMonitoringPathCommand = new RelayCommand(
|
||||
p => true,
|
||||
p => FolderMonitors.Count == 0,
|
||||
p => RemoveFolderMonitoringPath(p as string)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using GraphQL.Client;
|
||||
using BodyshopUploader.Utils.Growls;
|
||||
using GraphQL.Client;
|
||||
using GraphQL.Common.Request;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -17,6 +18,7 @@ namespace BodyshopUploader.ViewModels
|
||||
public MainViewModel()
|
||||
{
|
||||
logger.Trace("Main VM Created.");
|
||||
Growler = new GrowlNotification(this);
|
||||
|
||||
//Create Variables
|
||||
if (MonitoringPaths == null) MonitoringPaths = new ObservableCollection<string>();
|
||||
@@ -75,6 +77,17 @@ namespace BodyshopUploader.ViewModels
|
||||
|
||||
public async Task TestGql()
|
||||
{
|
||||
Notification _n = new Notification()
|
||||
{
|
||||
Id = 123,
|
||||
ThreadId = 123,
|
||||
Title = "This is a title",
|
||||
Subtitle = "Subtitle",
|
||||
Message = "Somethin"
|
||||
};
|
||||
Growler.AddNotification(_n);
|
||||
|
||||
|
||||
var r = new GraphQLRequest
|
||||
{
|
||||
Query = @"
|
||||
|
||||
@@ -4,17 +4,13 @@ using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BodyshopUploader.Utils.Growls;
|
||||
|
||||
namespace BodyshopUploader.ViewModels
|
||||
{
|
||||
public partial class MainViewModel : BaseViewModel
|
||||
{
|
||||
private int _progress = 5;
|
||||
public int Progress
|
||||
{
|
||||
get { return _progress; }
|
||||
set { SetProperty(ref _progress, value); }
|
||||
}
|
||||
public GrowlNotification Growler;
|
||||
|
||||
private ObservableCollection<Utils.CIECAMonitor> _folderMonitors = new ObservableCollection<Utils.CIECAMonitor>() ;
|
||||
public ObservableCollection<Utils.CIECAMonitor> FolderMonitors
|
||||
|
||||
Reference in New Issue
Block a user