Initial Commit.
[KerbalStuffWrapper.git] /
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Collections.Generic;
using KerbalStuff;

namespace KSWUnitTest
{
	using KerbalStuff;

	public static class Program
	{
		public static int Main()
		{
			/*Console.WriteLine("\n\nSearch:");
			foreach (Mod obj in KerbalStuff.Search("Quantum Struts"))
			{
				Console.WriteLine(obj);
			}

			Console.WriteLine("\n\nModInfo:");
			Console.WriteLine(KerbalStuff.ModInfo(123));

			Console.WriteLine("\n\nModLatest:");
			Console.WriteLine(KerbalStuff.ModLatest(24));

			Console.WriteLine("\n\nUserInfo:");
			Console.WriteLine(KerbalStuff.UserInfo("toadicus"));

			Console.WriteLine("\n\nUserSearch:");
			foreach (User user in KerbalStuff.UserSearch("toad"))
			{
				Console.WriteLine(user);
			}*/

			KerbalStuff.Login("toadicus", "redacted");

			var testMod = new Mod(
				"testMod",
				"This mod is a test.",
				"0.1",
				"0.24.2",
				"MIT"
			);

			/*KerbalStuff.Create(
				testMod,
				"mod.zip",
				"mod.zip"
			);*/

			KerbalStuff.Update(210, new ModVersion("0.3", "0.24.2", "changes changes changes!"), false, "mod.zip", "mod.zip");

			return 0;
		}
	}
}