Add GetfolderResponse.EventfolderData.ParentFolderId handle
This commit is contained in:
parent
e5678d00fd
commit
dca46c0cd7
@ -4,15 +4,18 @@ namespace SharedProject.Models;
|
|||||||
|
|
||||||
public class EventFolderData
|
public class EventFolderData
|
||||||
{
|
{
|
||||||
[JsonPropertyName("folderId")]
|
[JsonPropertyName("folderId")]
|
||||||
public uint FolderId { get; set; }
|
public uint FolderId { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("verupNo")]
|
[JsonPropertyName("verupNo")]
|
||||||
public uint VerupNo { get; set; }
|
public uint VerupNo { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("priority")]
|
[JsonPropertyName("priority")]
|
||||||
public uint Priority { get; set; }
|
public uint Priority { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("songNo")]
|
[JsonPropertyName("songNo")]
|
||||||
public uint[]? SongNo { get; set; }
|
public uint[]? SongNo { get; set; }
|
||||||
|
|
||||||
|
[JsonPropertyName("parentFolderId")]
|
||||||
|
public uint ParentFolderId { get; set; }
|
||||||
}
|
}
|
@ -17,7 +17,7 @@ public class GameDataService : IGameDataService
|
|||||||
|
|
||||||
private ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> danDataDictionary =
|
private ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> danDataDictionary =
|
||||||
ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData>.Empty;
|
ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData>.Empty;
|
||||||
|
|
||||||
private ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> gaidenDataDictionary =
|
private ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> gaidenDataDictionary =
|
||||||
ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData>.Empty;
|
ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData>.Empty;
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public class GameDataService : IGameDataService
|
|||||||
{
|
{
|
||||||
return danDataDictionary;
|
return danDataDictionary;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> GetGaidenDataDictionary()
|
public ImmutableDictionary<uint, GetDanOdaiResponse.OdaiData> GetGaidenDataDictionary()
|
||||||
{
|
{
|
||||||
return gaidenDataDictionary;
|
return gaidenDataDictionary;
|
||||||
@ -112,7 +112,7 @@ public class GameDataService : IGameDataService
|
|||||||
{
|
{
|
||||||
return lockedSongsList;
|
return lockedSongsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ImmutableDictionary<string, uint> GetQRCodeDataDictionary()
|
public ImmutableDictionary<string, uint> GetQRCodeDataDictionary()
|
||||||
{
|
{
|
||||||
return qrCodeDataDictionary;
|
return qrCodeDataDictionary;
|
||||||
@ -172,7 +172,7 @@ public class GameDataService : IGameDataService
|
|||||||
InitializeMusicAttributes(attributesData);
|
InitializeMusicAttributes(attributesData);
|
||||||
|
|
||||||
InitializeDanData(danData);
|
InitializeDanData(danData);
|
||||||
|
|
||||||
InitializeGaidenData(gaidenData);
|
InitializeGaidenData(gaidenData);
|
||||||
|
|
||||||
InitializeIntroData(introData);
|
InitializeIntroData(introData);
|
||||||
@ -186,7 +186,7 @@ public class GameDataService : IGameDataService
|
|||||||
InitializeTokenData(tokenData);
|
InitializeTokenData(tokenData);
|
||||||
|
|
||||||
InitializeLockedSongsData(lockedSongsData);
|
InitializeLockedSongsData(lockedSongsData);
|
||||||
|
|
||||||
InitializeQRCodeData(qrCodeData);
|
InitializeQRCodeData(qrCodeData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ public class GameDataService : IGameDataService
|
|||||||
danData.ThrowIfNull("Shouldn't happen!");
|
danData.ThrowIfNull("Shouldn't happen!");
|
||||||
danDataDictionary = danData.ToImmutableDictionary(data => data.DanId, ToResponseOdaiData);
|
danDataDictionary = danData.ToImmutableDictionary(data => data.DanId, ToResponseOdaiData);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeGaidenData(List<DanData>? gaidenData)
|
private void InitializeGaidenData(List<DanData>? gaidenData)
|
||||||
{
|
{
|
||||||
gaidenData.ThrowIfNull("Shouldn't happen!");
|
gaidenData.ThrowIfNull("Shouldn't happen!");
|
||||||
@ -284,7 +284,7 @@ public class GameDataService : IGameDataService
|
|||||||
lockedSongsData.ThrowIfNull("Shouldn't happen!");
|
lockedSongsData.ThrowIfNull("Shouldn't happen!");
|
||||||
lockedSongsList = lockedSongsData["songNo"].ToList();
|
lockedSongsList = lockedSongsData["songNo"].ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeQRCodeData(List<QRCodeData>? qrCodeData)
|
private void InitializeQRCodeData(List<QRCodeData>? qrCodeData)
|
||||||
{
|
{
|
||||||
qrCodeData.ThrowIfNull("Shouldn't happen!");
|
qrCodeData.ThrowIfNull("Shouldn't happen!");
|
||||||
@ -340,7 +340,8 @@ public class GameDataService : IGameDataService
|
|||||||
FolderId = data.FolderId,
|
FolderId = data.FolderId,
|
||||||
VerupNo = data.VerupNo,
|
VerupNo = data.VerupNo,
|
||||||
Priority = data.Priority,
|
Priority = data.Priority,
|
||||||
SongNoes = data.SongNo
|
SongNoes = data.SongNo,
|
||||||
|
ParentFolderId = data.ParentFolderId
|
||||||
};
|
};
|
||||||
|
|
||||||
return responseEventFolderData;
|
return responseEventFolderData;
|
||||||
|
Loading…
Reference in New Issue
Block a user