- Implemented IRaceUploadCommunicationClient with methods for saving races, creating race points, indexing race points, retrieving race details, and uploading files to the receiver. - Added ReceiveFilePath option to CatalogCommunicationOptions for file transfer configuration. - Enhanced CatalogCommunicationServiceCollectionExtensions to validate ReceiveFilePath. - Developed RaceUploadCommunicationClient to handle race-related API interactions, including saving race data and uploading processed images. - Updated API documentation to reflect new race upload and file transfer endpoints. - Modified Avalonia UI to support race creation and processed image uploads, including new input fields and buttons. - Introduced RaceSaveRequest and ReceiveFileUploadRequest models for structured data handling.
26 lines
591 B
C#
26 lines
591 B
C#
namespace Catalog.Communication.Models;
|
|
|
|
public sealed class RaceSaveRequest
|
|
{
|
|
public long IdGara { get; init; }
|
|
|
|
public required string Description { get; init; }
|
|
|
|
public required DateOnly StartDate { get; init; }
|
|
|
|
public DateOnly? EndDate { get; init; }
|
|
|
|
public required long TipoGaraId { get; init; }
|
|
|
|
public int EventoInLinea { get; init; }
|
|
|
|
public int TipoIndicizzazione { get; init; }
|
|
|
|
public int FreeEvent { get; init; }
|
|
|
|
public string? PathBase { get; init; }
|
|
|
|
public string? Localita { get; init; }
|
|
|
|
public long? CodGara { get; init; }
|
|
}
|