source: AE/installer2/src/net/oni2/aeinstaller/backend/depot/DepotConfig.java@ 623

Last change on this file since 623 was 621, checked in by alloc, 12 years ago

AEI2:

  • Added offline detection (should run without internet connection)
  • Update check (manual/on startup), not actually updating yet
File size: 1.9 KB
Line 
1package net.oni2.aeinstaller.backend.depot;
2
3import net.oni2.aeinstaller.backend.Settings;
4
5/**
6 * @author Christian Illy
7 */
8public class DepotConfig {
9
10 /**
11 * @return Type-value of nodes which contain Mods
12 */
13 public static String getNodeType_Mod() {
14 return "mod";
15 }
16
17 /**
18 * @return Vocabulary name for platform field
19 */
20 public static String getVocabularyName_Platform() {
21 return "Platform";
22 }
23
24 /**
25 * @return Vocabulary name for installtype field
26 */
27 public static String getVocabularyName_InstallType() {
28 return "Install method";
29 }
30
31 /**
32 * @return Vocabulary name for modtype field
33 */
34 public static String getVocabularyName_ModType() {
35 return "Mod type";
36 }
37
38 /**
39 * @return Taxonomy term name for platform value Win
40 */
41 public static String getTaxonomyName_Platform_Win() {
42 return "Windows";
43 }
44
45 /**
46 * @return Taxonomy term name for platform value Mac
47 */
48 public static String getTaxonomyName_Platform_Mac() {
49 return "Mac OS";
50 }
51
52 /**
53 * @return Taxonomy term name for platform value Both
54 */
55 public static String getTaxonomyName_Platform_Both() {
56 return "Both";
57 }
58
59 /**
60 * @return Taxonomy term name for installtype Package
61 */
62 public static String getTaxonomyName_InstallType_Package() {
63 return "Package";
64 }
65
66 /**
67 * @return Taxonomy term name for modtype Tool
68 */
69 public static String getTaxonomyName_ModType_Tool() {
70 return "Tool";
71 }
72
73 /**
74 * @return First package number that's not a mandatory tool/mod. Everything
75 * below is considered mandatory
76 */
77 public static int getMandatoryLimit() {
78 return 8000;
79 }
80
81 /**
82 * @return URL of Depot
83 */
84 public static String getDepotUrl() {
85 return Settings.getInstance().get("depot_url", "http://mods.oni2.net/");
86 }
87
88 /**
89 * @return URL of Depot API
90 */
91 public static String getDepotApiUrl() {
92 return Settings.getInstance().get("depot_api_url",
93 "http://mods.oni2.net/?q=api/");
94 }
95}
Note: See TracBrowser for help on using the repository browser.