68 lines
1.6 KiB
C#
68 lines
1.6 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Repräsentiert Kontakt-Daten Minimalversion
|
|
/// </summary>
|
|
public class ContactMin : ObservableObject
|
|
{
|
|
private string _email;
|
|
private string _phone;
|
|
private string _mobile;
|
|
|
|
/// <summary>
|
|
/// Email-Adresse der Kontaktperson
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(255)]
|
|
[JsonPropertyName("email")]
|
|
public string Email
|
|
{
|
|
get => _email;
|
|
set
|
|
{
|
|
_email = value;
|
|
OnPropertyChanged(nameof(Email));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optinale Telefonnummer (Festnetz)
|
|
/// </summary>
|
|
[MaxLength(100)]
|
|
[JsonPropertyName("phone")]
|
|
public string Phone
|
|
{
|
|
get => _phone;
|
|
set
|
|
{
|
|
_phone = value;
|
|
OnPropertyChanged(nameof(Phone));
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optinale Handy-Nummer
|
|
/// </summary>
|
|
[MaxLength(100)]
|
|
[JsonPropertyName("mobile")]
|
|
public string Mobile
|
|
{
|
|
get => _mobile;
|
|
set
|
|
{
|
|
_mobile = value;
|
|
OnPropertyChanged(nameof(Mobile));
|
|
}
|
|
}
|
|
}
|
|
}
|