103 lines
2.3 KiB
C#
103 lines
2.3 KiB
C#
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> { }
|
|
}
|