28 lines
721 B
C#
28 lines
721 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using Newtonsoft.Json;
|
|
using ReallifeGamemode.Database.Models;
|
|
|
|
/**
|
|
* @overview Life of German Reallife - Entities FactionVehicles (FactionVehicle.cs)
|
|
* @author VegaZ
|
|
* @copyright (c) 2008 - 2018 Life of German
|
|
*/
|
|
|
|
namespace ReallifeGamemode.Database.Entities
|
|
{
|
|
[Table("FactionVehicles")]
|
|
public partial class FactionVehicle : ServerVehicle
|
|
{
|
|
public string Owners { get; set; }
|
|
|
|
public List<int> GetOwners() => JsonConvert.DeserializeObject<List<int>>(Owners);
|
|
|
|
public override string ToString()
|
|
{
|
|
return "Fraktions Fahrzeug | Fraktion: " + string.Join(", ", GetOwners());
|
|
}
|
|
}
|
|
}
|