using System.Runtime.Serialization;

namespace DM.MovieApi.MovieDb.IndustryProfessions;

[DataContract]
public class Profession
{
    [DataMember( Name = "department" )]
    public string Department { get; set; }

    [DataMember( Name = "jobs" )]
    public IReadOnlyList<string> Jobs { get; set; }

    public override string ToString()
        => $"{Department} {Jobs.Count} jobs";
}
