using System.ComponentModel.DataAnnotations;
using Connected;
using Connected.Notifications;
namespace Connected.Globalization.Languages;
///
/// The arguments used when inserting a new .
///
public class LanguageInsertArgs : IEventArgs
{
///
/// The language name.
///
[Required]
[MaxLength(128)]
public string? Name { get; init; }
///
/// The locale id of the language. This should point to one of the
/// supported .NET Core supported languages.
///
public int Lcid { get; init; }
///
/// The language mappings, separated with ',' character.
///
public string? Mappings { get; init; }
}
///
/// The arguments used when updating a language.
///
public sealed class LanguageUpdateArgs : LanguageInsertArgs
{
public int Id { get; init; }
}
///
/// The arguments used when resolving a lnaguge by its mapping.
///
public class LanguageResolveArgs : IDto
{
///
/// The mapping string whose values will be compared with a mapping
/// property of the language. Use ',' separator when using multiple
/// mappings.
///
public string? Mapping { get; init; }
}