This repository has been archived by the owner on Jan 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from LipPkg/develop
Relase v0.2.7
- Loading branch information
Showing
23 changed files
with
274 additions
and
258 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,64 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
#nullable disable | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace LipNETWrapper.Class | ||
namespace LipNETWrapper.Class; | ||
|
||
public partial class LipPackage | ||
{ | ||
// { | ||
// "author": "Mojang", | ||
// "description": "Bedrock Dedicated Servers allow Minecraft players on Windows and Linux computers to set up their own server at home, or host their server using a cloud-based service.", | ||
// "files": [], | ||
// "homepage": "https://www.minecraft.net", | ||
// "license": "", | ||
// "name": "Minecraft Bedrock Dedicated Server", | ||
// "tooth": "github.com/tooth-hub/bds", | ||
// "version": "1.19.61", | ||
// "versions": [ | ||
// "1.19.61", | ||
// "1.7.0", | ||
// "1.6.1" | ||
// ] | ||
//} | ||
[Serializable] | ||
public class LipPackageVersions | ||
{ | ||
[JsonProperty("versions")] public string[]? Versions { get; set; } | ||
} | ||
[Serializable] | ||
public class LipPackage: LipPackageVersions | ||
{ | ||
[JsonProperty("author")] public string Author { get; set; } = string.Empty; | ||
[JsonProperty("description")] public string Description { get; set; } = string.Empty; | ||
[JsonProperty("files")] public LipFile[] Files { get; set; } = Array.Empty<LipFile>(); | ||
[JsonProperty("homepage")] public string Homepage { get; set; } = string.Empty; | ||
[JsonProperty("license")] public string License { get; set; } = string.Empty; | ||
[JsonProperty("name")] public string Name { get; set; } = string.Empty; | ||
[JsonProperty("tooth")] public string Tooth { get; set; } = string.Empty; | ||
[JsonProperty("version")] public string Version { get; set; } = string.Empty; | ||
} | ||
[Serializable] | ||
public class LipFile//todo 这玩意长啥样 | ||
{ | ||
//[JsonProperty("name")] public string Name { get; set; } | ||
//[JsonProperty("sha256")] public string Sha256 { get; set; } | ||
//[JsonProperty("size")] public long Size { get; set; } | ||
//[JsonProperty("url")] public string Url { get; set; } | ||
} | ||
[JsonProperty("format_version")] | ||
public long FormatVersion { get; set; } | ||
|
||
[JsonProperty("tooth")] | ||
public string Tooth { get; set; } | ||
|
||
[JsonProperty("version")] | ||
public string Version { get; set; } | ||
|
||
[JsonProperty("info")] | ||
public Info Info { get; set; } | ||
|
||
[JsonProperty("commands")] | ||
public Commands Commands { get; set; } | ||
|
||
[JsonProperty("dependencies")] | ||
public Dictionary<string, string> Dependencies { get; set; } | ||
|
||
[JsonProperty("files")] | ||
public Files Files { get; set; } | ||
} | ||
|
||
public partial class Commands | ||
{ | ||
[JsonProperty("post_install")] | ||
public string[] PostInstall { get; set; } | ||
} | ||
public partial class Files | ||
{ | ||
[JsonProperty("place")] | ||
public Place[] Place { get; set; } | ||
|
||
[JsonProperty("remove")] | ||
public string[] Remove { get; set; } | ||
} | ||
|
||
public partial class Place | ||
{ | ||
[JsonProperty("src")] | ||
public string Src { get; set; } | ||
|
||
[JsonProperty("dest")] | ||
public string Dest { get; set; } | ||
} | ||
|
||
public partial class Info | ||
{ | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
[JsonProperty("author")] | ||
public string Author { 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
#nullable disable | ||
namespace LipNETWrapper.Class; | ||
|
||
public class LipPackageItem | ||
{ | ||
[JsonProperty("available_versions")] public LipPackageVersions AvailableVersions { get; set; } | ||
[JsonProperty("metadata")] public LipPackage Package { get; set; } | ||
} | ||
|
||
public class LipPackageVersions : List<string> | ||
{ | ||
|
||
} |
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
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.