mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 14:34:15 +01:00
add the whole API stuff first iteration
This commit is contained in:
parent
176eb2a344
commit
1312086a8d
10 changed files with 692 additions and 92 deletions
|
|
@ -5,12 +5,24 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using MareSynchronos.API;
|
||||
|
||||
namespace MareSynchronos.Models
|
||||
{
|
||||
[JsonObject(MemberSerialization.OptIn)]
|
||||
public class CharacterCache
|
||||
{
|
||||
public CharacterCacheDto ToCharacterCacheDto()
|
||||
{
|
||||
return new CharacterCacheDto()
|
||||
{
|
||||
FileReplacements = AllReplacements.Select(f => f.ToFileReplacementDto()).ToList(),
|
||||
GlamourerData = GlamourerString,
|
||||
Hash = CacheHash,
|
||||
JobId = (int)JobId
|
||||
};
|
||||
}
|
||||
|
||||
[JsonProperty]
|
||||
public List<FileReplacement> AllReplacements =>
|
||||
FileReplacements.Where(f => f.HasFileReplacement)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue