Slim down responses from game imports
Reduced the amount of data being sent to the client from the API which results in smaller, somewhat faster requests. In a library of ~250 games the requests went from 5.6MB to 3.3MB.
This commit is contained in:
parent
286ec3f415
commit
a14b7cdeac
7 changed files with 21 additions and 9 deletions
|
|
@ -1,7 +1,10 @@
|
|||
namespace LANCommander.SDK.Models
|
||||
using System;
|
||||
|
||||
namespace LANCommander.SDK.Models
|
||||
{
|
||||
public class Collection : BaseModel
|
||||
public class Collection
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LANCommander.SDK.Models
|
||||
{
|
||||
public class Company : BaseModel
|
||||
public class Company
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LANCommander.SDK.Models
|
||||
{
|
||||
public class Genre : BaseModel
|
||||
public class Genre
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ namespace LANCommander.SDK.Models
|
|||
{
|
||||
public class Media : BaseModel
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid FileId { get; set; }
|
||||
public MediaType Type { get; set; }
|
||||
public string SourceUrl { get; set; }
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ namespace LANCommander.SDK.Models
|
|||
{
|
||||
public class MultiplayerMode
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public MultiplayerType Type { get; set; }
|
||||
public NetworkProtocol NetworkProtocol { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ using System.Text;
|
|||
|
||||
namespace LANCommander.SDK.Models
|
||||
{
|
||||
public class SavePath : BaseModel
|
||||
public class SavePath
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public SavePathType Type { get; set; }
|
||||
public string Path { get; set; }
|
||||
public string WorkingDirectory { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LANCommander.SDK.Models
|
||||
{
|
||||
public class Tag : BaseModel
|
||||
public class Tag
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue