Exemplo n.º 1
0
 public static PlayerItem ToPlayerItem(CloudItemDto itemDto)
 {
     return(new PlayerItem {
         BaseRecord = itemDto.BaseRecord,
         EnchantmentRecord = itemDto.EnchantmentRecord,
         EnchantmentSeed = itemDto.EnchantmentSeed,
         IsHardcore = itemDto.IsHardcore,
         MateriaCombines = itemDto.MateriaCombines,
         MateriaRecord = itemDto.MateriaRecord,
         Mod = itemDto.Mod,
         ModifierRecord = itemDto.ModifierRecord,
         PrefixRecord = itemDto.PrefixRecord,
         RelicCompletionBonusRecord = itemDto.RelicCompletionBonusRecord,
         RelicSeed = itemDto.RelicSeed,
         Seed = itemDto.Seed,
         StackCount = itemDto.StackCount,
         SuffixRecord = itemDto.SuffixRecord,
         TransmuteRecord = itemDto.TransmuteRecord,
         CloudId = itemDto.Id,
         IsCloudSynchronized = true,
         CreationDate = itemDto.CreatedAt,
         LevelRequirement = itemDto.LevelRequirement,
         Name = itemDto.Name,
         NameLowercase = itemDto.NameLowercase,
         Rarity = itemDto.Rarity
     });
 }
Exemplo n.º 2
0
 private static BuddyItem ToBuddyItem(BuddySubscription subscription, CloudItemDto itemDto)
 {
     return(new BuddyItem {
         BaseRecord = itemDto.BaseRecord,
         EnchantmentRecord = itemDto.EnchantmentRecord,
         IsHardcore = itemDto.IsHardcore,
         MateriaRecord = itemDto.MateriaRecord,
         Mod = itemDto.Mod,
         ModifierRecord = itemDto.ModifierRecord,
         PrefixRecord = itemDto.PrefixRecord,
         StackCount = itemDto.StackCount,
         SuffixRecord = itemDto.SuffixRecord,
         TransmuteRecord = itemDto.TransmuteRecord,
         RemoteItemId = itemDto.Id,
         CreationDate = itemDto.CreatedAt,
         MinimumLevel = itemDto.LevelRequirement,
         Rarity = itemDto.Rarity,
         BuddyId = subscription.Id,
         PrefixRarity = itemDto.PrefixRarity,
     });
 }