84 lines
2.0 KiB
C#
84 lines
2.0 KiB
C#
using gehGassi.Dto.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text;
|
|
|
|
namespace gehGassi.Dto.Listings
|
|
{
|
|
/// <summary>
|
|
/// Dto für eine Branche
|
|
/// </summary>
|
|
public class BranchDto : SyncEntityDto
|
|
{
|
|
/// <summary>
|
|
/// Titel der Branche
|
|
/// </summary>
|
|
public string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// Anmerkungen intern
|
|
/// </summary>
|
|
public string Comment { get; set; }
|
|
|
|
/// <summary>
|
|
/// Name der Branche
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Beschreibung der Branche
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// Bild für die Branche - Allgemein
|
|
/// </summary>
|
|
public string Image { get; set; }
|
|
|
|
/// <summary>
|
|
/// Bild der Branche für eine Sprache
|
|
/// </summary>
|
|
public string ImageLanguage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Online / Offline Status
|
|
/// </summary>
|
|
public OnlineStatusDto OnlineStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// Für Listungen verfügbar
|
|
/// </summary>
|
|
public bool ListingAllowed { get; set; }
|
|
|
|
/// <summary>
|
|
/// Option zur Sortierung der Branchen in der App
|
|
/// </summary>
|
|
public int Order { get; set; }
|
|
|
|
/// <summary>
|
|
/// Datum der Erstellung
|
|
/// </summary>
|
|
public DateTimeOffset Created { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Dto für eine Branche mit Listungen
|
|
/// </summary>
|
|
public class BranchWithListingsDto : BranchDto
|
|
{
|
|
/// <summary>
|
|
/// Zugeordnete Listungen
|
|
/// </summary>
|
|
public List<ListingDto> Listings { get; set; }
|
|
|
|
/// <summary>
|
|
/// Erstellt eine Instanz
|
|
/// </summary>
|
|
public BranchWithListingsDto()
|
|
{
|
|
Listings = new List<ListingDto>();
|
|
}
|
|
}
|
|
}
|