-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plz dont send cops to me because you guys forgot to set branch password :)
- Loading branch information
Showing
28 changed files
with
201 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"CEMASK0000000000": [ | ||
"pd3_playstation_cosmetic_mask_premium_collectoredition" | ||
], | ||
"CEMASKASI0000000": [ | ||
"pd3_playstation_cosmetic_mask_premium_collectoredition" | ||
], | ||
"CEMASKJAP0000000": [ | ||
"pd3_playstation_cosmetic_mask_premium_collectoredition" | ||
], | ||
"CEMASKSIE0000000": [ | ||
"pd3_playstation_cosmetic_mask_premium_collectoredition" | ||
], | ||
"GOLDEDITIONITEM1": [ | ||
"pd3_playstation_cosmetic_accessory_gloves_goldedition", | ||
"pd3_playstation_cosmetic_mask_premium7" | ||
], | ||
"GOLDEDITIONITEM2": [ | ||
"pd3_playstation_cosmetic_accessory_gloves_goldedition", | ||
"pd3_playstation_cosmetic_mask_premium7" | ||
], | ||
"GOLDEDITIONITEM3": [ | ||
"pd3_playstation_cosmetic_accessory_gloves_goldedition", | ||
"pd3_playstation_cosmetic_mask_premium7" | ||
], | ||
"GOLDEDITIONITEMS": [ | ||
"pd3_playstation_cosmetic_accessory_gloves_goldedition", | ||
"pd3_playstation_cosmetic_mask_premium7" | ||
], | ||
"SILVERED0MASK000": [ | ||
"pd3_playstation_cosmetic_mask_premium_silveredition" | ||
], | ||
"SILVERED0MASKASI": [ | ||
"pd3_playstation_cosmetic_mask_premium_silveredition" | ||
], | ||
"SILVERED0MASKJAP": [ | ||
"pd3_playstation_cosmetic_mask_premium_silveredition" | ||
], | ||
"SILVERED0MASKSIE": [ | ||
"pd3_playstation_cosmetic_mask_premium_silveredition" | ||
], | ||
"TRIFECTALOOTBAG0": [ | ||
"pd3_playstation_cosmetic_mask_premium_preorder", | ||
"pd3_playstation_cosmetic_suit_premiumsuit_preorder", | ||
"pd3_playstation_cosmetic_accessory_gloves_preorder" | ||
], | ||
"TRIFECTALOOTBAG1": [ | ||
"pd3_playstation_cosmetic_mask_premium_preorder", | ||
"pd3_playstation_cosmetic_suit_premiumsuit_preorder", | ||
"pd3_playstation_cosmetic_accessory_gloves_preorder" | ||
], | ||
"TRIFECTALOOTBAG2": [ | ||
"pd3_playstation_cosmetic_mask_premium_preorder", | ||
"pd3_playstation_cosmetic_suit_premiumsuit_preorder", | ||
"pd3_playstation_cosmetic_accessory_gloves_preorder" | ||
], | ||
"TRIFECTALOOTBAG3": [ | ||
"pd3_playstation_cosmetic_mask_premium_preorder", | ||
"pd3_playstation_cosmetic_suit_premiumsuit_preorder", | ||
"pd3_playstation_cosmetic_accessory_gloves_preorder" | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
PayCheckServerLib/Jsons/AttribError.cs → PayCheckServerLib/Jsons/Basic/AttribError.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
PayCheckServerLib/Jsons/DataPaging.cs → PayCheckServerLib/Jsons/Basic/DataPaging.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
PayCheckServerLib/Jsons/ErrorMSG.cs → PayCheckServerLib/Jsons/Basic/ErrorMSG.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace PayCheckServerLib.Jsons.Basic | ||
{ | ||
public class TopLevel<T> where T : class | ||
{ | ||
[JsonProperty("namespace")] | ||
public string Namespace { get; set; } | ||
|
||
[JsonProperty("key")] | ||
public string Key { get; set; } | ||
|
||
[JsonProperty("set_by")] | ||
public string SetBy { get; set; } | ||
|
||
[JsonProperty("value")] | ||
public T Value { get; set; } | ||
|
||
[JsonProperty("created_at")] | ||
public string CreatedAt { get; set; } | ||
|
||
[JsonProperty("updated_at")] | ||
public string UpdatedAt { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
using Newtonsoft.Json; | ||
using PayCheckServerLib.Jsons.Basic; | ||
|
||
namespace PayCheckServerLib.Jsons | ||
{ | ||
public class ProgressionSaveRSP | ||
public class ProgressionSaveRSP : TopLevel<object> | ||
{ | ||
[JsonProperty("created_at")] | ||
public string CreatedAt { get; set; } | ||
|
||
[JsonProperty("is_public")] | ||
public bool IsPublic { get; set; } = false; | ||
|
||
[JsonProperty("key")] | ||
public string Key { get; set; } = "progressionsavegame"; | ||
|
||
[JsonProperty("namespace")] | ||
public string Namespace { get; set; } = "pd3"; | ||
|
||
[JsonProperty("set_by")] | ||
public string SetBy { get; set; } = "CLIENT"; | ||
|
||
[JsonProperty("updated_at")] | ||
public string UpdatedAt { get; set; } | ||
|
||
[JsonProperty("user_id")] | ||
public string UserId { get; set; } | ||
|
||
[JsonProperty("value")] | ||
public object Value { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
using Newtonsoft.Json; | ||
using PayCheckServerLib.Jsons.Basic; | ||
|
||
namespace PayCheckServerLib.Jsons | ||
{ | ||
public class TitleData | ||
public class TitleData : TopLevel<Dictionary<string, string>> | ||
{ | ||
[JsonProperty("created_at")] | ||
public string CreatedAt { get; set; } | ||
|
||
[JsonProperty("key")] | ||
public string Key { get; set; } | ||
|
||
[JsonProperty("namespace")] | ||
public string Namespace { get; set; } | ||
|
||
[JsonProperty("set_by")] | ||
public string SetBy { get; set; } | ||
|
||
[JsonProperty("updated_at")] | ||
public string UpdatedAt { get; set; } | ||
|
||
[JsonProperty("value")] | ||
public Dictionary<string, string> Value { get; set; } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
PayCheckServerLib/Jsons/Chats.cs → PayCheckServerLib/Jsons/WSS/Chats.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
using NetCoreServer; | ||
using Newtonsoft.Json; | ||
using PayCheckServerLib.Jsons.Basic; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace PayCheckServerLib.Responses | ||
{ | ||
public class DLCs | ||
{ | ||
public class PutDLC | ||
{ | ||
public string steamId { get; set; } | ||
public string appId { get; set; } | ||
} | ||
|
||
public partial class DLC_Value | ||
{ | ||
[JsonProperty("data")] | ||
public Dictionary<string, string[]> Data { get; set; } | ||
|
||
[JsonProperty("dlcType")] | ||
public string DlcType { get; set; } | ||
} | ||
|
||
|
||
|
||
[HTTP("PUT", "/platform/public/namespaces/pd3/users/{UserId}/dlc/steam/sync")] | ||
public static bool PUT_DLC_SteamSync(HttpRequest request, PC3Server.PC3Session session) | ||
{ | ||
//var body = JsonConvert.DeserializeObject<PutDLC>(request.Body); | ||
ResponseCreator response = new ResponseCreator(204); | ||
response.SetHeader("Content-Type", "application/json"); | ||
session.SendResponse(response.GetResponse()); | ||
return true; | ||
} | ||
|
||
|
||
[HTTP("GET", "/cloudsave/v1/namespaces/pd3/records/dlc-entitlements")] | ||
public static bool GETdlcentitlements(HttpRequest request, PC3Server.PC3Session session) | ||
{ | ||
TopLevel<DLC_Value> dlc = new() | ||
{ | ||
SetBy = "SERVER", | ||
CreatedAt = "2023-09-25T12:01:02.096Z", | ||
Key = "dlc-entitlements", | ||
Namespace = "pd3", | ||
UpdatedAt = "2023-09-25T12:01:02.096Z", | ||
Value = new() | ||
{ | ||
Data = new(), | ||
DlcType = "PSN" | ||
} | ||
}; | ||
var data = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(File.ReadAllText("Files/DLC_Entiltements.json")); | ||
dlc.Value.Data = data; | ||
ResponseCreator response = new ResponseCreator(); | ||
response.SetHeader("Content-Type", "application/json"); | ||
response.SetBody(JsonConvert.SerializeObject(dlc)); | ||
session.SendResponse(response.GetResponse()); | ||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.