You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi.Mapping/Profiles/SettingsProfile.cs

25 lines
1.3 KiB

using AutoMapper;
using Ombi.Core.Models.UI;
using Ombi.Settings.Settings.Models;
using Ombi.Settings.Settings.Models.Notifications;
namespace Ombi.Mapping.Profiles
{
public class SettingsProfile : Profile
{
public SettingsProfile()
{
CreateMap<EmailNotificationsViewModel, EmailNotificationSettings>().ReverseMap();
CreateMap<DiscordNotificationsViewModel, DiscordNotificationSettings>().ReverseMap();
CreateMap<PushbulletNotificationViewModel, PushbulletSettings>().ReverseMap();
CreateMap<SlackNotificationsViewModel, SlackNotificationSettings>().ReverseMap();
CreateMap<PushoverNotificationViewModel, PushoverSettings>().ReverseMap();
CreateMap<MattermostNotificationsViewModel, MattermostNotificationSettings>().ReverseMap();
CreateMap<TelegramNotificationsViewModel, TelegramSettings>().ReverseMap();
CreateMap<UpdateSettingsViewModel, UpdateSettings>().ReverseMap();
CreateMap<MobileNotificationsViewModel, MobileNotificationSettings>().ReverseMap();
CreateMap<NewsletterNotificationViewModel, NewsletterSettings>().ReverseMap();
CreateMap<GotifyNotificationViewModel, GotifySettings>().ReverseMap();
}
}
}