using System.Runtime.Serialization;

namespace DM.MovieApi.MovieDb.TV;

[DataContract]
public class GuestStars
{
    [DataMember( Name = "id" )]
    public int Id { get; set; }

    [DataMember( Name = "character" )]
    public string Character { get; set; }

    [DataMember( Name = "credit_id" )]
    public string CreditId { get; set; }

    [DataMember( Name = "order" )]
    public int Order { get; set; }

    [DataMember( Name = "adult" )]
    public bool? Adult { get; set; }

    [DataMember( Name = "gender" )]
    public int? Gender { get; set; }

    [DataMember( Name = "known_for_department" )]
    public string KnownForDepartment { get; set; }

    [DataMember( Name = "name" )]
    public string Name { get; set; }

    [DataMember( Name = "original_name" )]
    public string OriginalName { get; set; }

    [DataMember( Name = "popularity" )]
    public float Popularity { get; set; }

    [DataMember( Name = "profile_path" )]
    public string ProfilePath { get; set; }

    public override string ToString()
        => $"{Name} - {Character}";
}
