git-svn-id: https://duplicati.googlecode.com/svn/trunk@1244 59da171f-624f-0410-aa54-27559c288bec
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace Duplicati.Server.Serialization
|
|
{
|
|
public class SerializableStatusCreator : CustomCreationConverter<IServerStatus>
|
|
{
|
|
public override IServerStatus Create(Type objectType)
|
|
{
|
|
return new Implementations.ServerStatus();
|
|
}
|
|
}
|
|
|
|
public class ProgressEventDataCreator : CustomCreationConverter<IProgressEventData>
|
|
{
|
|
public override IProgressEventData Create(Type objectType)
|
|
{
|
|
return new Implementations.ProgressEventData();
|
|
}
|
|
}
|
|
|
|
public class JobSettingsDataCreator : CustomCreationConverter<IJobSettings>
|
|
{
|
|
public override IJobSettings Create(Type objectType)
|
|
{
|
|
return new Implementations.JobSettings();
|
|
}
|
|
}
|
|
|
|
public class BackendSettingsCreator : CustomCreationConverter<IBackendSettings>
|
|
{
|
|
public override IBackendSettings Create(Type objectType)
|
|
{
|
|
return new Implementations.BackendSettings();
|
|
}
|
|
}
|
|
|
|
public class FilterSetCreator : CustomCreationConverter<IFilterSet>
|
|
{
|
|
public override IFilterSet Create(Type objectType)
|
|
{
|
|
return new Implementations.FilterSet();
|
|
}
|
|
}
|
|
}
|