 14575a4a6b
			
		
	
	14575a4a6b
	
	
	
		
			
			* add jwt expiry * start of 0.9 api impl * some stuff idk * some more impl * some cleanup * remove grouppair, add configuration, rework some pair drawing stuff * do some stuff * rework some ui * I don't even know anymore * add cancellationtoken * token bla * ui fixes etc * probably individual adding/removing now working fully as expected * add working report popup * I guess it's more syncshell shit or so * popup shit idk * work out most of the syncshell bullshit I guess * delete some old crap * are we actually getting closer to the end * update pair info stuff * more fixes/adjustments, idk * refactor some things * some rework * some more cleanup * cleanup * make menu buttons w i d e * better icon text buttons * add all syncshell folder and ordering fixes --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			553 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			553 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using MareSynchronos.API.Dto.Files;
 | |
| 
 | |
| namespace MareSynchronos.WebAPI.Files.Models;
 | |
| 
 | |
| public class DownloadFileTransfer : FileTransfer
 | |
| {
 | |
|     public DownloadFileTransfer(DownloadFileDto dto) : base(dto)
 | |
|     {
 | |
|     }
 | |
| 
 | |
|     public override bool CanBeTransferred => Dto.FileExists && !Dto.IsForbidden && Dto.Size > 0;
 | |
|     public Uri DownloadUri => new(Dto.Url);
 | |
|     public override long Total
 | |
|     {
 | |
|         set
 | |
|         {
 | |
|             // nothing to set
 | |
|         }
 | |
|         get => Dto.Size;
 | |
|     }
 | |
|     private DownloadFileDto Dto => (DownloadFileDto)TransferDto;
 | |
| } |