feat: implemented available resumes on Back-end

This commit is contained in:
2025-07-27 21:18:31 +03:00
parent 7c22b4b9a7
commit 171757705a
8 changed files with 201 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
using System.Text.Json.Serialization;
namespace JOBot.Backend.DTOs.HeadHunterApi;
public record HeadHunterTokenResponseDto(
[property: JsonPropertyName("access_token")]
string AccessToken,
[property: JsonPropertyName("expires_in")]
int ExpiresIn,
[property: JsonPropertyName("refresh_token")]
string RefreshToken,
[property: JsonPropertyName("token_type")]
string TokenType
);

View File

@@ -0,0 +1,21 @@
using System.Text.Json.Serialization;
namespace JOBot.Backend.DTOs.HeadHunterApi;
public class ListOfResumeResponseDto
{
[JsonPropertyName("found")]
public bool Found { get; set; }
[JsonPropertyName("items")]
public List<Resume> Items { get; set; } = [];
}
public class Resume
{
[JsonPropertyName("can_publish_or_update")]
public bool CanPublishOrUpdate { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; } = null!;
[JsonPropertyName("url")]
public string Url { get; set; } = null!;
}