Added base decoding logic + notification logic.

This commit is contained in:
Patrick Fic
2020-01-17 11:03:11 -08:00
parent 572f409176
commit 3357a8a564
11 changed files with 659 additions and 11 deletions

View File

@@ -0,0 +1,102 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BodyshopUploader.Utils.Growls
{
public class Notification : INotifyPropertyChanged
{
private string message;
public string Message
{
get { return message; }
set
{
if (message == value) return;
message = value;
OnPropertyChanged("Message");
}
}
private int id;
public int Id
{
get { return id; }
set
{
if (id == value) return;
id = value;
OnPropertyChanged("Id");
}
}
private int threadid;
public int ThreadId
{
get { return threadid; }
set
{
if (threadid == value) return;
threadid = value;
OnPropertyChanged("ThreadId");
}
}
private string imageUrl;
public string ImageUrl
{
get { return imageUrl; }
set
{
if (imageUrl == value) return;
imageUrl = value;
OnPropertyChanged("ImageUrl");
}
}
private string title;
public string Title
{
get { return title; }
set
{
if (title == value) return;
title = value;
OnPropertyChanged("Title");
}
}
private string subtitle;
public string Subtitle
{
get { return subtitle; }
set
{
if (subtitle == value) return;
subtitle = value;
OnPropertyChanged("Subtitle");
}
}
protected virtual void OnPropertyChanged(string propertyName)
{
var handler = PropertyChanged;
if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
}
public event PropertyChangedEventHandler PropertyChanged;
}
public class Notifications : ObservableCollection<Notification> { }
}