gehgassi_backend/gehGassi.Dto/WebSite/AppUserLocationDto.cs

58 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using gehGassi.Dto.Common;
namespace gehGassi.Dto.WebSite
{
/// <summary>
/// DTO for displaying the positions of app users on the website
/// </summary>
public sealed class AppUserLocationItemDto
{
/// <summary>
/// AppUser Type
/// </summary>
public AppUserTypeDto Type { get; set; }
/// <summary>
/// Zip
/// </summary>
public string Zip { get; set; }
/// <summary>
/// City
/// </summary>
public string City { get; set; }
/// <summary>
/// Country ISO2 code
/// </summary>
public string Country { get; set; }
/// <summary>
/// Latitude
/// </summary>
public double? Lat { get; set; }
/// <summary>
/// Longitude
/// </summary>
public double? Lng { get; set; }
}
public sealed class AppUserLocationDto
{
public int Total { get; set; }
public int Skip { get; set; }
public int Take { get; set; }
public DateTimeOffset? TimeStamp { get; set; }
public List<AppUserLocationItemDto> Items { get; set; }
public AppUserLocationDto()
{
Items = new List<AppUserLocationItemDto>();
}
}
}