feat: implemented available resumes on Back-end
This commit is contained in:
@@ -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
|
||||
);
|
||||
21
JOBot.Backend/DTOs/HeadHunterApi/ListOfResumeResponseDto.cs
Normal file
21
JOBot.Backend/DTOs/HeadHunterApi/ListOfResumeResponseDto.cs
Normal 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!;
|
||||
}
|
||||
Reference in New Issue
Block a user