1
0
mirror of synced 2025-01-29 19:37:23 +01:00

Use global using in application

This commit is contained in:
asesidaa 2023-02-16 16:53:02 +08:00
parent ef11e98da7
commit 6de389cf2b
95 changed files with 153 additions and 455 deletions

View File

@ -1,5 +1,4 @@
using System.Linq.Expressions;
using System.Text;
using System.Text;
using ChoETL;
using Throw;

View File

@ -1,7 +1,6 @@
using System.Reflection;
using Application.Common.Behaviours;
using Application.Game.Card;
using Application.Interfaces;
using Application.Jobs;
using MediatR;
using Microsoft.Extensions.DependencyInjection;

View File

@ -1,5 +1,4 @@
using System.ComponentModel;
using System.Xml.Serialization;
namespace Application.Dto;

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class CardBDatumDto
{

View File

@ -1,5 +1,4 @@
using System.ComponentModel;
using System.Xml.Serialization;
namespace Application.Dto;

View File

@ -1,5 +1,4 @@
using System.ComponentModel;
using System.Xml.Serialization;
namespace Application.Dto;

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class CoinDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class ItemDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class MusicAouDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class MusicDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class MusicExtraDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class NavigatorDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class PlayNumRankDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class ScoreRankDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class SessionDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class SkinDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class SoundEffectDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class TitleDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class TotalTrophyDto
{

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Dto;
namespace Application.Dto;
public class UnlockKeyNumDto
{

View File

@ -1,5 +1,4 @@
using Application.Interfaces;
using Domain.Config;
using Domain.Config;
using Microsoft.Extensions.Options;
namespace Application.Game.Card;

View File

@ -1,6 +1,4 @@
using Domain;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using Microsoft.AspNetCore.Mvc;
namespace Application.Game.Card;

View File

@ -1,6 +1,4 @@
using Application.Common.Models;
using Application.Interfaces;
using Domain.Config;
using Domain.Config;
namespace Application.Game.Card;

View File

@ -1,10 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
namespace Application.Game.Card.Management;
namespace Application.Game.Card.Management;
public record CardRegisterCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,8 +1,4 @@
using Application.Common.Models;
using Application.Interfaces;
using Domain.Enums;
namespace Application.Game.Card.Management;
namespace Application.Game.Card.Management;
public record CardReissueCommand(long CardId) : IRequestWrapper<string>;

View File

@ -1,7 +1,4 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.OnlineMatching;
namespace Application.Game.Card.OnlineMatching;
public record StartOnlineMatchingCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,7 +1,4 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.OnlineMatching;
namespace Application.Game.Card.OnlineMatching;
public record UpdateOnlineMatchingCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,7 +1,4 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.OnlineMatching;
namespace Application.Game.Card.OnlineMatching;
public record UploadOnlineMatchingResultCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,10 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
namespace Application.Game.Card.Read;

View File

@ -1,12 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Config;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
namespace Application.Game.Card.Read;

View File

@ -1,9 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
namespace Application.Game.Card.Read;

View File

@ -1,9 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Domain.Enums;
using Microsoft.Extensions.Logging;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,9 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,9 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,9 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,12 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Config;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
namespace Application.Game.Card.Read;
public record ReadItemQuery(long CardId) : IRequestWrapper<string>;

View File

@ -1,11 +1,4 @@
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,12 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Config;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;

View File

@ -1,10 +1,3 @@
using System.Xml.Serialization;
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Interfaces;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Card.Read;
@ -26,7 +19,7 @@ public class ReadUnlockRewardQueryHandler : CardRequestHandlerBase<ReadUnlockRew
Id = i,
CardId = request.CardId,
RewardId = rewardConfig.RewardId,
RewardType = rewardConfig.RewardType,
RewardType = (int)rewardConfig.RewardType,
TargetId = rewardConfig.TargetId,
TargetNum = rewardConfig.TargetNum,
KeyNum = rewardConfig.KeyNum,

View File

@ -1,9 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
namespace Application.Game.Card.Session;
namespace Application.Game.Card.Session;
public record GetSessionCommand(long CardId, string Mac) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteAvatarCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,10 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Domain.Enums;
using Microsoft.Extensions.Logging;
namespace Application.Game.Card.Write;

View File

@ -1,11 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Helpers;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Application.Common.Helpers;
using Microsoft.Extensions.Logging;
namespace Application.Game.Card.Write;

View File

@ -1,10 +1,4 @@
using Application.Common.Extensions;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Domain.Enums;
using Microsoft.EntityFrameworkCore;
using Domain.Enums;
using Microsoft.Extensions.Logging;
namespace Application.Game.Card.Write;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteCoinCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteItemCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteMusicDetailCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteNavigatorCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteSkinCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteSoundEffectCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteTitleCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,3 @@
using Application.Common.Models;
using Application.Interfaces;
namespace Application.Game.Card.Write;
public record WriteUnlockKeynumCommand(long CardId, string Data) : IRequestWrapper<string>;

View File

@ -1,6 +1,4 @@
using Application.Interfaces;
using MediatR;
using Microsoft.EntityFrameworkCore;
using MediatR;
using Microsoft.Extensions.Logging;
namespace Application.Game.Option;

View File

@ -1,8 +1,4 @@
using System.Xml.Serialization;
using Application.Common.Extensions;
using Application.Common.Helpers;
using Application.Common.Models;
using Application.Interfaces;
using Application.Common.Helpers;
namespace Application.Game.Rank;

View File

@ -1,11 +1,4 @@
using System.Xml.Serialization;
using Application.Common.Extensions;
using Application.Common.Helpers;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Microsoft.EntityFrameworkCore;
using Application.Common.Helpers;
namespace Application.Game.Rank;
@ -35,41 +28,27 @@ public class GetGlobalScoreRankQueryHandler : IRequestHandlerWrapper<GetGlobalSc
{
var rank = await cardDbContext.GlobalScoreRanks.FirstOrDefaultAsync(scoreRank => scoreRank.CardId == cardId,
cancellationToken: cancellationToken);
GlobalScoreRankContainer container;
if (rank is null)
var container = new GlobalScoreRankContainer
{
container = new GlobalScoreRankContainer
{
Ranks = new List<ScoreRankDto>(),
Status = new RankStatus
{
TableName = "GlobalScoreRank",
StartDate = TimeHelper.DateToString(DateTime.Today),
EndDate = TimeHelper.DateToString(DateTime.Today),
Rows = 1,
Status = 1
}
};
return new ServiceResult<string>(container.SerializeCardData());
}
var dto = rank.ScoreRankToDto();
dto.Id = 0;
container = new GlobalScoreRankContainer
{
Ranks = new List<ScoreRankDto>
{
dto
},
Ranks = new List<ScoreRankDto>(),
Status = new RankStatus
{
TableName = "GlobalScoreRank",
StartDate = TimeHelper.DateToString(DateTime.Today),
EndDate = TimeHelper.DateToString(DateTime.Today),
Rows = 1,
Rows = 0,
Status = 1
}
};
if (rank is null)
{
return new ServiceResult<string>(container.SerializeCardData());
}
var dto = rank.ScoreRankToDto();
dto.Id = 0;
container.Ranks.Add(dto);
container.Status.Rows++;
return new ServiceResult<string>(container.SerializeCardData());
}

View File

@ -1,11 +1,4 @@
using System.Xml.Serialization;
using Application.Common.Extensions;
using Application.Common.Helpers;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Microsoft.EntityFrameworkCore;
using Application.Common.Helpers;
namespace Application.Game.Rank;

View File

@ -1,12 +1,5 @@
using System.Diagnostics;
using System.Xml.Serialization;
using Application.Common.Extensions;
using Application.Common.Helpers;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Microsoft.EntityFrameworkCore;
namespace Application.Game.Rank;

View File

@ -1,12 +1,4 @@
using System.Xml.Serialization;
using Application.Common.Extensions;
using Application.Common.Helpers;
using Application.Common.Models;
using Application.Dto;
using Application.Interfaces;
using Application.Mappers;
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Application.Common.Helpers;
namespace Application.Game.Rank;
@ -36,41 +28,27 @@ public class GetTenpoScoreRankQueryHandler : IRequestHandlerWrapper<GetTenpoScor
var rank = await cardDbContext.GlobalScoreRanks.FirstOrDefaultAsync(scoreRank => scoreRank.CardId == cardId &&
scoreRank.LastPlayTenpoId == tenpoId,
cancellationToken: cancellationToken);
TenpoScoreRankContainer container;
var container = new TenpoScoreRankContainer
{
Ranks = new List<ScoreRankDto>(),
Status = new RankStatus
{
TableName = "TenpoScoreRank",
StartDate = TimeHelper.DateToString(DateTime.Today),
EndDate = TimeHelper.DateToString(DateTime.Today),
Rows = 0,
Status = 1
}
};
if (rank is null)
{
container = new TenpoScoreRankContainer
{
Ranks = new List<ScoreRankDto>(),
Status = new RankStatus
{
TableName = "TenpoScoreRank",
StartDate = TimeHelper.DateToString(DateTime.Today),
EndDate = TimeHelper.DateToString(DateTime.Today),
Rows = 1,
Status = 1
}
};
return new ServiceResult<string>(container.SerializeCardData());
}
var dto = rank.ScoreRankToDto();
dto.Id = 0;
container = new TenpoScoreRankContainer
{
Ranks = new List<ScoreRankDto>
{
dto
},
Status = new RankStatus
{
TableName = "TenpoScoreRankContainer",
StartDate = TimeHelper.DateToString(DateTime.Today),
EndDate = TimeHelper.DateToString(DateTime.Today),
Rows = 1,
Status = 1
}
};
container.Ranks.Add(dto);
container.Status.Rows++;
return new ServiceResult<string>(container.SerializeCardData());
}

View File

@ -1,5 +1,4 @@
using System.ComponentModel;
using System.Xml.Serialization;
namespace Application.Game.Rank;

View File

@ -1,6 +1,4 @@
using System.Xml.Serialization;
namespace Application.Game.Rank;
namespace Application.Game.Rank;
public class RankStatus
{

View File

@ -1,7 +1,6 @@
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using Application.Interfaces;
using Domain.Config;
using MediatR;
using Microsoft.Extensions.Options;

View File

@ -1,5 +1,4 @@
using System.Text;
using Application.Interfaces;
using MediatR;
namespace Application.Game.Server;

View File

@ -0,0 +1,9 @@
// Global using directives
global using System.Xml.Serialization;
global using Microsoft.EntityFrameworkCore;
global using Application.Common.Extensions;
global using Application.Common.Models;
global using Application.Interfaces;
global using Application.Mappers;
global using Application.Dto;

View File

@ -1,5 +1,4 @@
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
namespace Application.Interfaces;

View File

@ -1,5 +1,4 @@
using Domain.Config;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
namespace Application.Interfaces;

View File

@ -1,5 +1,4 @@
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
namespace Application.Interfaces;

View File

@ -1,5 +1,4 @@
using Application.Common.Models;
using MediatR;
using MediatR;
namespace Application.Interfaces;

View File

@ -1,6 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using Application.Interfaces;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Quartz;

View File

@ -1,7 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using Application.Interfaces;
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Quartz;

View File

@ -1,6 +1,4 @@
using Application.Interfaces;
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Domain.Entities;
using Microsoft.Extensions.Logging;
using Quartz;

View File

@ -1,7 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using Application.Interfaces;
using Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Quartz;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,5 +1,4 @@
using Application.Dto;
using Domain.Entities;
using Domain.Entities;
using Riok.Mapperly.Abstractions;
namespace Application.Mappers;

View File

@ -1,14 +1,18 @@
namespace Domain.Config;
using System.Text.Json.Serialization;
using Domain.Enums;
namespace Domain.Config;
public class UnlockRewardConfig
{
public int RewardId { get; set; }
public int RewardType { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public RewardType RewardType { get; set; }
public int TargetId { get; set; }
public int TargetNum { get; set; }
public int KeyNum { get; set; }
}

View File

@ -2,8 +2,8 @@
public enum CardCommandType
{
CardReadRequest = 256,
CardReadRequest = 256,
CardWriteRequest = 768,
RegisterRequest = 512,
ReissueRequest = 1536
RegisterRequest = 512,
ReissueRequest = 1536
}

View File

@ -3,53 +3,61 @@
public enum CardRequestType
{
#region Read
ReadCard = 259,
ReadCardDetail = 260,
ReadCardDetails = 261,
ReadCardBData = 264,
ReadAvatar = 418,
ReadItem = 420,
ReadSkin = 422,
ReadTitle = 424,
ReadMusic = 428,
ReadEventReward = 441,
ReadNavigator = 443,
ReadMusicExtra = 465,
ReadMusicAou = 467,
ReadCoin = 468,
ReadCard = 259,
ReadCardDetail = 260,
ReadCardDetails = 261,
ReadCardBData = 264,
ReadAvatar = 418,
ReadItem = 420,
ReadSkin = 422,
ReadTitle = 424,
ReadMusic = 428,
ReadEventReward = 441,
ReadNavigator = 443,
ReadMusicExtra = 465,
ReadMusicAou = 467,
ReadCoin = 468,
ReadUnlockReward = 507,
ReadUnlockKeynum = 509,
ReadSoundEffect = 8458,
ReadGetMessage = 8461,
ReadCond = 8465,
ReadTotalTrophy = 8468,
ReadSoundEffect = 8458,
ReadGetMessage = 8461,
ReadCond = 8465,
ReadTotalTrophy = 8468,
#endregion
#region Session
GetSession = 401,
GetSession = 401,
StartSession = 402,
#endregion
#region Write
WriteCard = 771,
WriteCardDetail = 772,
WriteCardBData = 776,
WriteAvatar = 929,
WriteItem = 931,
WriteTitle = 935,
WriteMusicDetail = 941,
WriteNavigator = 954,
WriteCoin = 980,
WriteSkin = 933,
WriteCard = 771,
WriteCardDetail = 772,
WriteCardBData = 776,
WriteAvatar = 929,
WriteItem = 931,
WriteTitle = 935,
WriteMusicDetail = 941,
WriteNavigator = 954,
WriteCoin = 980,
WriteSkin = 933,
WriteUnlockKeynum = 1020,
WriteSoundEffect = 8969,
WriteSoundEffect = 8969,
#endregion
#region Online Matching
StartOnlineMatching = 8705,
UpdateOnlineMatching = 8961,
StartOnlineMatching = 8705,
UpdateOnlineMatching = 8961,
UploadOnlineMatchingResult = 8709,
#endregion
}

View File

@ -19,7 +19,7 @@ public enum CardReturnCode
/// 再発行予約がありません in debug string
/// </summary>
NotReissue = 27,
/// <summary>
/// Server side validation error
/// </summary>

View File

@ -2,9 +2,9 @@
public enum RankingCommandType
{
GlobalRank = 4119,
GlobalRank = 4119,
PlayNumRank = 6657,
EventRank = 6661,
EventRank = 6661,
MonthlyRank = 6666,
ShopRank = 4098
ShopRank = 4098
}

View File

@ -0,0 +1,10 @@
namespace Domain.Enums;
public enum RewardType
{
Music = 0,
Item = 1,
Avatar = 2,
Navigator = 7,
Coin = 8
}

View File

@ -16,35 +16,35 @@
"UnlockRewards": [
{
"RewardId" : 1,
"RewardType" : 1,
"RewardType" : "Item",
"TargetId" : 1,
"TargetNum": 1,
"KeyNum": 1
},
{
"RewardId" : 2,
"RewardType" : 0,
"RewardType" : "Music",
"TargetId" : 11,
"TargetNum": 1,
"KeyNum": 1
},
{
"RewardId" : 3,
"RewardType" : 2,
"RewardType" : "Avatar",
"TargetId" : 11,
"TargetNum": 1,
"KeyNum": 1
},
{
"RewardId" : 4,
"RewardType" : 7,
"RewardType" : "Navigator",
"TargetId" : 11,
"TargetNum": 1,
"KeyNum": 1
},
{
"RewardId" : 5,
"RewardType" : 8,
"RewardType" : "Coin",
"TargetId" : 1,
"TargetNum": 1,
"KeyNum": 1