mirror of https://github.com/Squidex/squidex.git
Browse Source
# Conflicts: # backend/src/Squidex.Domain.Apps.Core.Model/Apps/Json/AppPatternsConverter.cspull/593/head
11 changed files with 141 additions and 90 deletions
@ -1,38 +0,0 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschränkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using Newtonsoft.Json; |
|||
using Squidex.Infrastructure.Reflection; |
|||
|
|||
namespace Squidex.Domain.Apps.Core.Apps.Json |
|||
{ |
|||
public class JsonAppPattern |
|||
{ |
|||
[JsonProperty] |
|||
public string Name { get; set; } |
|||
|
|||
[JsonProperty] |
|||
public string Pattern { get; set; } |
|||
|
|||
[JsonProperty] |
|||
public string? Message { get; set; } |
|||
|
|||
public JsonAppPattern() |
|||
{ |
|||
} |
|||
|
|||
public JsonAppPattern(AppPattern pattern) |
|||
{ |
|||
SimpleMapper.Map(pattern, this); |
|||
} |
|||
|
|||
public AppPattern ToPattern() |
|||
{ |
|||
return new AppPattern(Name, Pattern, Message); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue