Removed WeatherForecast API and model. Added TuneRipper.Shared project with shared configuration and YouTube processing models. Updated solution and project references to enable code sharing between API and client. Explicitly included Controllers folder in API project.
24 lines
637 B
C#
24 lines
637 B
C#
namespace TuneRipper.Shared.Models;
|
|
|
|
public class ProcessVideoRequest
|
|
{
|
|
public string? Url { get; set; }
|
|
public string? Format { get; set; } = "mp3";
|
|
public string? Quality { get; set; } = "128";
|
|
}
|
|
|
|
public class ProcessVideoResponse
|
|
{
|
|
public bool Success { get; set; }
|
|
public string? Message { get; set; }
|
|
public string? FileName { get; set; }
|
|
public string? DownloadUrl { get; set; }
|
|
public YouTubeVideoDetails? VideoDetails { get; set; }
|
|
}
|
|
|
|
public class DownloadProgress
|
|
{
|
|
public int PercentageComplete { get; set; }
|
|
public string? Status { get; set; }
|
|
public string? Message { get; set; }
|
|
} |