Files
marechai/Marechai.Data/Dtos/CreateSoftwareVideoRequest.cs
Natalia Portillo b0972a21c4 Add YouTube video management functionality
- Implemented YouTubeUrlParser to extract video IDs from various YouTube URL formats.
- Added a new SoftwareVideos page for managing videos associated with software.
- Introduced methods in SoftwareService for creating, updating, and deleting video entries.
- Enhanced the Software admin page with a button to navigate to the video management section.
- Updated localization files to include new strings related to video management in multiple languages.
2026-05-07 11:40:07 +01:00

47 lines
1.7 KiB
C#

/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Dtos;
public class CreateSoftwareVideoRequest
{
[Required]
[StringLength(32)]
[JsonPropertyName("provider")]
public string Provider { get; set; } = null!;
[Required]
[StringLength(64)]
[JsonPropertyName("video_id")]
public string VideoId { get; set; } = null!;
[StringLength(512)]
[JsonPropertyName("title")]
public string? Title { get; set; }
}