mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-05 01:27:18 +00:00
36 lines
989 B
C#
36 lines
989 B
C#
using System;
|
|
using System.Net;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PckStudio.Classes.Networking
|
|
{
|
|
public class PCKCollections
|
|
{
|
|
WebClient client = new WebClient();
|
|
|
|
public string[] GetCategories()
|
|
{
|
|
string cat = "";
|
|
try
|
|
{
|
|
cat = client.DownloadString(PckStudio.Classes.Network.MainURL + "/studio/PCK/api/PCKCategories.txt");
|
|
}
|
|
catch
|
|
{
|
|
cat = client.DownloadString(PckStudio.Classes.Network.BackURL + "/studio/PCK/api/PCKCategories.txt");
|
|
}
|
|
return cat.Split(new[] { "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
|
|
}
|
|
|
|
public string[] GetPackNames(string Category, bool IsVita)
|
|
{
|
|
string cat = "";
|
|
return cat.Split(new[] { "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
|
|
}
|
|
|
|
}
|
|
}
|