 30caedbf3a
			
		
	
	30caedbf3a
	
	
	
		
			
			* update api * mcd online editor impl * most of chara data hub impl * some state of things * some refactoring * random bullshit go * more nearby impl * add uid to peformance msg * cleanup/homogenization * some split, update nuget packages * migrate to latest packages where possible, remove lz4net, do some split, idk * some polish and cleanup * more cleanup, beautification, etc. * fixes and cleanups --------- Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using MareSynchronos.API.Dto.CharaData;
 | |
| 
 | |
| namespace MareSynchronos.Services.CharaData.Models;
 | |
| 
 | |
| public sealed record CharaDataMetaInfoExtendedDto : CharaDataMetaInfoDto
 | |
| {
 | |
|     private CharaDataMetaInfoExtendedDto(CharaDataMetaInfoDto baseMeta) : base(baseMeta)
 | |
|     {
 | |
|         FullId = baseMeta.Uploader.UID + ":" + baseMeta.Id;
 | |
|     }
 | |
| 
 | |
|     public List<PoseEntryExtended> PoseExtended { get; private set; } = [];
 | |
|     public bool HasPoses => PoseExtended.Count != 0;
 | |
|     public bool HasWorldData => PoseExtended.Exists(p => p.HasWorldData);
 | |
|     public bool IsOwnData { get; private set; }
 | |
|     public string FullId { get; private set; }
 | |
| 
 | |
|     public async static Task<CharaDataMetaInfoExtendedDto> Create(CharaDataMetaInfoDto baseMeta, DalamudUtilService dalamudUtilService, bool isOwnData = false)
 | |
|     {
 | |
|         CharaDataMetaInfoExtendedDto newDto = new(baseMeta);
 | |
| 
 | |
|         foreach (var pose in newDto.PoseData)
 | |
|         {
 | |
|             newDto.PoseExtended.Add(await PoseEntryExtended.Create(pose, newDto, dalamudUtilService).ConfigureAwait(false));
 | |
|         }
 | |
| 
 | |
|         newDto.IsOwnData = isOwnData;
 | |
| 
 | |
|         return newDto;
 | |
|     }
 | |
| }
 |