using System;

namespace JobTrackerApi.Services.JobImport;

public sealed record JobImportResult
{
    public string? Title { get; init; }
    public string? Company { get; init; }
    public string? Location { get; init; }
    public string? Description { get; init; }
    public string? TranslatedDescription { get; init; }
    public string? Language { get; init; } // ISO-ish, e.g. "en", "no"
    public string[] Tags { get; init; } = Array.Empty<string>();
    public string SourceUrl { get; init; } = "";
    public string? Source { get; init; }
    public string? CountryCode { get; init; }
    public DateTime? Deadline { get; init; }

    public bool Success { get; init; }
    public string? Parser { get; init; } // "universal", "finn", ...
    public string? Error { get; init; }
}

