18 lines
670 B
C#
18 lines
670 B
C#
using System;
|
|
using System.Text.Json.Nodes;
|
|
using StellaOps.Notify.Models;
|
|
|
|
namespace StellaOps.Notify.WebService.Services;
|
|
|
|
internal sealed class NotifySchemaMigrationService
|
|
{
|
|
public NotifyRule UpgradeRule(JsonNode json)
|
|
=> NotifySchemaMigration.UpgradeRule(json ?? throw new ArgumentNullException(nameof(json)));
|
|
|
|
public NotifyChannel UpgradeChannel(JsonNode json)
|
|
=> NotifySchemaMigration.UpgradeChannel(json ?? throw new ArgumentNullException(nameof(json)));
|
|
|
|
public NotifyTemplate UpgradeTemplate(JsonNode json)
|
|
=> NotifySchemaMigration.UpgradeTemplate(json ?? throw new ArgumentNullException(nameof(json)));
|
|
}
|