mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
6063aafd9e
Refactored the friend request command service and SignalR hub to return and broadcast FriendshipDto objects, improving real-time updates. Enhanced media upload and download logic to support file storage and retrieval, including database integration. Removed all command classes and related infrastructure from the Govor.Console project, streamlining the console client. Updated dependency injection and interfaces to reflect these changes.
15 lines
439 B
C#
15 lines
439 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Govor.Core.Models.Messages;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace Govor.Contracts.Requests;
|
|
|
|
public class MediaUploadRequest
|
|
{
|
|
[Required]
|
|
public IFormFile Data { get; set; }
|
|
public string FileName { get; set; }
|
|
public string EncryptedKey { get; set; } = string.Empty;
|
|
public MediaType Type { get; set; }
|
|
public string MimeType { get; set; } = string.Empty;
|
|
} |