Skip to content
Snippets Groups Projects
Commit 940e6f7f authored by isaachs2's avatar isaachs2
Browse files

Add all cafe DTOs

parent 8ca473d2
No related branches found
No related tags found
1 merge request!1Add Cafe DTOs
using System;
namespace BeckmanComms.Api.DataTransferObjects.V2.Cafe
{
/// <summary>
/// Data Transfer Object representing a cafe announcement.
/// </summary>
public class CafeAnnouncementDto
{
/// <summary>
/// Date to post the announcement.
/// </summary>
public DateTime Date { get; set; }
/// <summary>
/// Message to be displayed in the announcement.
/// </summary>
public string Message { get; set; }
}
}
\ No newline at end of file
using System.Collections.Generic;
namespace BeckmanComms.Api.DataTransferObjects.V2.Cafe
{
/// <summary>
/// Data Transfer Object representing a
/// </summary>
public class DishDto
{
/// <summary>
/// The name of the dish.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The category of the dish (e.g., Soup, Sandwich, Salad).
/// </summary>
public string Category { get; set; }
/// <summary>
/// The description of the dish.
/// </summary>
public string Description { get; set; }
/// <summary>
/// The path to the image of the dish.
/// </summary>
public string Image { get; set; }
/// <summary>
/// The description of the image of the dish, suitable for use as alt text.
/// </summary>
public string ImageDescription { get; set; }
/// <summary>
/// The standard price of the dish.
/// </summary>
public double StandardPrice { get; set; }
/// <summary>
/// The price of a half-order of the dish, when available.
/// </summary>
public double? HalfPrice { get; set; }
/// <summary>
/// Indicates whether the item is available every day (<c>DishDto.Specialty == false</c>) or
/// as an occasional specialty item (<c>DishDto.Specialty == true</c>).
/// </summary>
public bool Specialty { get; set; }
/// <summary>
/// Indicates whether the item is in-stock (<c>DishDto.SoldOut == false</c>) or
/// sold-out (<c>DishDto.SoldOut == true</c>).
/// </summary>
public bool SoldOut { get; set; }
/// <summary>
/// Indicates whether the item should not be displayed as a featured item (<c>DishDto.Featured == false</c>) or
/// should be displayed as a featured item (<c>DishDto.SoldOut == true</c>).
/// </summary>
public bool Featured { get; set; }
/// <summary>
/// The qualities of a dish (e.g., Vegetarian, Vegan, Gluten Free).
/// </summary>
public IEnumerable<DishQualityDto> DishQualities { get; set; }
}
}
\ No newline at end of file
namespace BeckmanComms.Api.DataTransferObjects.V2.Cafe
{
/// <summary>
/// Data Transfer Object representing a dish quality.
/// </summary>
/// <example>Gluten Free</example>
/// <example>Spicy</example>
/// <example>Vegan</example>
public class DishQualityDto
{
/// <summary>
/// The name of the dish quality.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The icon representing the dish quality.
/// </summary>
public string Icon { get; set; }
/// <summary>
/// The description of the icon representing the dish quality.
/// </summary>
public string IconDescription { get; set; }
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
namespace BeckmanComms.Api.DataTransferObjects.V2.Cafe
{
/// <summary>
/// Data Transfer Object containing combined menu database fields.
/// </summary>
public class MenuDto
{
/// <summary>
/// Menu date in a human-readable format.
/// </summary>
public string Title { get; set; }
/// <summary>
/// Menu date.
/// </summary>
public DateTime Date { get; set; }
/// <summary>
/// Collection containing dishes that belong to this menu.
/// </summary>
public IEnumerable<DishDto> Dishes { get; set; }
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment