mirror of
https://github.com/yawaflua/SkinsApi.git
synced 2025-12-10 20:39:35 +02:00
Add project files.
This commit is contained in:
42
Models/DecodedSkinProperty.cs
Normal file
42
Models/DecodedSkinProperty.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SkinsApi.Models
|
||||
{
|
||||
public class Metadata
|
||||
{
|
||||
[JsonPropertyName("model")]
|
||||
public string Model { get; set; }
|
||||
}
|
||||
|
||||
public class DecodedSkinProperty
|
||||
{
|
||||
[JsonPropertyName("timestamp")]
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
[JsonPropertyName("profileId")]
|
||||
public string ProfileId { get; set; }
|
||||
|
||||
[JsonPropertyName("profileName")]
|
||||
public string ProfileName { get; set; }
|
||||
|
||||
[JsonPropertyName("textures")]
|
||||
public Textures Textures { get; set; }
|
||||
}
|
||||
|
||||
public class SKIN
|
||||
{
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("metadata")]
|
||||
public Metadata Metadata { get; set; }
|
||||
}
|
||||
|
||||
public class Textures
|
||||
{
|
||||
[JsonPropertyName("SKIN")]
|
||||
public SKIN SKIN { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
10
Models/SkinService/MojangProfile.cs
Normal file
10
Models/SkinService/MojangProfile.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using SkinsApi.Interfaces.SkinService;
|
||||
|
||||
namespace SkinsApi.Models.SkinService
|
||||
{
|
||||
public class MojangProfile : IProfile
|
||||
{
|
||||
public string id { get; set; }
|
||||
public string name { get; set; }
|
||||
}
|
||||
}
|
||||
16
Models/SkinService/MojangSessionProperty.cs
Normal file
16
Models/SkinService/MojangSessionProperty.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace SkinsApi.Models.SkinService
|
||||
{
|
||||
public class Property
|
||||
{
|
||||
public string name { get; set; }
|
||||
public string value { get; set; }
|
||||
}
|
||||
|
||||
public class MojangSessionProperty
|
||||
{
|
||||
public string id { get; set; }
|
||||
public string name { get; set; }
|
||||
public List<Property> properties { get; set; }
|
||||
public List<object> profileActions { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user