PhilMurwin / growl-for-windows

Automatically exported from code.google.com/p/growl-for-windows
0 stars 0 forks source link

Serialization of Notification (and other) object #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi
I'm trying to forward growl notifications via XMPP protocol. 
To do this, I need to serialize Notification object. One way is to use JSON 
Serializer, but .NET serializer needs to object using empty constructor and 
Notification class doesn't have such one. The second way is to use i.e. 
BinaryFormatter but Notification class is not marked as Serializable.

So: mark Notification (Application and NotificationType also) classes as 
Serializable or create empty constructor for this class or allow setting all 
attributes (including MachineName and so on). Last thing should be done on 
ExtensibleObject level.

Original issue reported on code.google.com by Marcin.K...@gmail.com on 19 Apr 2012 at 9:52