using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace gehGassiApp.Domain.Common
{
///
/// Repräsentiert Kontakt-Daten Minimalversion
///
public class ContactMin : ObservableObject
{
private string _email;
private string _phone;
private string _mobile;
///
/// Email-Adresse der Kontaktperson
///
[Required]
[MaxLength(255)]
[JsonPropertyName("email")]
public string Email
{
get => _email;
set
{
_email = value;
OnPropertyChanged(nameof(Email));
}
}
///
/// Optinale Telefonnummer (Festnetz)
///
[MaxLength(100)]
[JsonPropertyName("phone")]
public string Phone
{
get => _phone;
set
{
_phone = value;
OnPropertyChanged(nameof(Phone));
}
}
///
/// Optinale Handy-Nummer
///
[MaxLength(100)]
[JsonPropertyName("mobile")]
public string Mobile
{
get => _mobile;
set
{
_mobile = value;
OnPropertyChanged(nameof(Mobile));
}
}
}
}