mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
- Created ProcessorVideos.razor and ProcessorVideos.razor.cs for managing videos associated with processors. - Implemented video linking, title updating, and deletion features. - Added UI components for video management, including input fields for YouTube URLs and video IDs. - Integrated video display in the processor view with support for YouTube embeds. - Updated localization files for new video management strings in multiple languages. - Enhanced ProcessorsService to handle video-related API calls.
47 lines
1.7 KiB
C#
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;
|
|
|
|
namespace Marechai.Database.Models;
|
|
|
|
public class ProcessorVideo : BaseModel<long>
|
|
{
|
|
[Required]
|
|
public int ProcessorId { get; set; }
|
|
public virtual Processor Processor { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(32)]
|
|
public string Provider { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(64)]
|
|
public string VideoId { get; set; }
|
|
|
|
[StringLength(512)]
|
|
public string Title { get; set; }
|
|
}
|