1
0
mirror of synced 2024-11-23 22:41:01 +01:00

Add GetfolderResponse.EventfolderData.ParentFolderId handle

This commit is contained in:
esuo1198 2023-09-23 08:34:23 +09:00
parent e5678d00fd
commit dca46c0cd7
2 changed files with 20 additions and 16 deletions

View File

@ -4,15 +4,18 @@ namespace SharedProject.Models;
public class EventFolderData
{
[JsonPropertyName("folderId")]
public uint FolderId { get; set; }
[JsonPropertyName("folderId")]
public uint FolderId { get; set; }
[JsonPropertyName("verupNo")]
public uint VerupNo { get; set; }
[JsonPropertyName("verupNo")]
public uint VerupNo { get; set; }
[JsonPropertyName("priority")]
public uint Priority { get; set; }
[JsonPropertyName("priority")]
public uint Priority { get; set; }
[JsonPropertyName("songNo")]
public uint[]? SongNo { get; set; }
[JsonPropertyName("songNo")]
public uint[]? SongNo { get; set; }
[JsonPropertyName("parentFolderId")]
public uint ParentFolderId { get; set; }
}

View File

@ -17,7 +17,7 @@ public class GameDataService : IGameDataService
private ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> danDataDictionary =
ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData>.Empty;
private ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> gaidenDataDictionary =
ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData>.Empty;
@ -77,7 +77,7 @@ public class GameDataService : IGameDataService
{
return danDataDictionary;
}
public ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> GetGaidenDataDictionary()
{
return gaidenDataDictionary;
@ -112,7 +112,7 @@ public class GameDataService : IGameDataService
{
return lockedSongsList;
}
public ImmutableDictionary<string, uint> GetQRCodeDataDictionary()
{
return qrCodeDataDictionary;
@ -172,7 +172,7 @@ public class GameDataService : IGameDataService
InitializeMusicAttributes(attributesData);
InitializeDanData(danData);
InitializeGaidenData(gaidenData);
InitializeIntroData(introData);
@ -186,7 +186,7 @@ public class GameDataService : IGameDataService
InitializeTokenData(tokenData);
InitializeLockedSongsData(lockedSongsData);
InitializeQRCodeData(qrCodeData);
}
@ -231,7 +231,7 @@ public class GameDataService : IGameDataService
danData.ThrowIfNull("Shouldn't happen!");
danDataDictionary = danData.ToImmutableDictionary(data => data.DanId, ToResponseOdaiData);
}
private void InitializeGaidenData(List<DanData>? gaidenData)
{
gaidenData.ThrowIfNull("Shouldn't happen!");
@ -284,7 +284,7 @@ public class GameDataService : IGameDataService
lockedSongsData.ThrowIfNull("Shouldn't happen!");
lockedSongsList = lockedSongsData["songNo"].ToList();
}
private void InitializeQRCodeData(List<QRCodeData>? qrCodeData)
{
qrCodeData.ThrowIfNull("Shouldn't happen!");
@ -340,7 +340,8 @@ public class GameDataService : IGameDataService
FolderId = data.FolderId,
VerupNo = data.VerupNo,
Priority = data.Priority,
SongNoes = data.SongNo
SongNoes = data.SongNo,
ParentFolderId = data.ParentFolderId
};
return responseEventFolderData;