JD2022-TU1/main/tools/services/JD.SonyTrophy.Service/Trophy.cs

30 lines
866 B
C#

using System;
using System.Collections.Generic;
namespace JD.SonyTrophy.Service
{
public sealed class Trophy
{
public int Id { get; }
public bool IsSecret { get; }
public bool IsRequiredForPlatinium { get; }
public TrophyGrade Grade { get; }
public IReadOnlyDictionary<string, Text> Translations { get; }
public string ImagePath { get; }
public Trophy(int id, bool isSecret, bool isRequiredForPlatinium, TrophyGrade grade, IReadOnlyDictionary<string, Text> translations, string imagePath)
{
Id = id;
IsSecret = isSecret;
IsRequiredForPlatinium = isRequiredForPlatinium;
Grade = grade;
Translations = translations ?? throw new ArgumentNullException(nameof(translations));
ImagePath = imagePath;
}
}
}