54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using Manager.Interfaces.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Manager.Interfaces.DTO
|
|
{
|
|
public class MapDTO
|
|
{
|
|
public int zoom { get; set; } // Default = 18
|
|
public MapTypeApp mapType { get; set; } // Default = Hybrid
|
|
public List<GeoPointDTO> points { get; set; }
|
|
public string iconResourceId { get; set; }
|
|
public string iconSource { get; set; } // url to firebase storage or on internet
|
|
public List<CategorieDTO> categories { get; set; }
|
|
}
|
|
|
|
public class GeoPointDTO
|
|
{
|
|
public int id { get; set; }
|
|
public List<TranslationDTO> title { get; set; }
|
|
public List<TranslationDTO> description { get; set; }
|
|
public List<ContentGeoPoint> contents { get; set; }
|
|
public CategorieDTO categorie { get; set; }
|
|
public string latitude { get; set; }
|
|
public string longitude { get; set; }
|
|
}
|
|
|
|
public class CategorieDTO
|
|
{
|
|
public List<TranslationDTO> label { get; set; }
|
|
public string icon { get; set; } // icon material
|
|
public string iconResourceId { get; set; } // icon point geo
|
|
public string iconUrl { get; set; } // url to firebase storage or on internet
|
|
}
|
|
|
|
public class ContentGeoPoint
|
|
{
|
|
public string resourceId { get; set; }
|
|
public ResourceType resourceType { get; set; }
|
|
public string resourceUrl { get; set; } // url to firebase storage or on internet
|
|
public string resourceName { get; set; }
|
|
}
|
|
|
|
public enum MapTypeApp
|
|
{
|
|
none,
|
|
normal,
|
|
satellite,
|
|
terrain,
|
|
hybrid
|
|
}
|
|
}
|