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

Last change on this file since 624 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
RevLine 
[591]1package net.oni2.aeinstaller.backend.depot;
2
[621]3import net.oni2.aeinstaller.backend.Settings;
4
[591]5/**
6 * @author Christian Illy
7 */
8public class DepotConfig {
[592]9
[591]10 /**
[592]11 * @return Type-value of nodes which contain Mods
[591]12 */
[592]13 public static String getNodeType_Mod() {
14 return "mod";
15 }
[591]16
17 /**
[592]18 * @return Vocabulary name for platform field
[591]19 */
[592]20 public static String getVocabularyName_Platform() {
21 return "Platform";
22 }
23
[591]24 /**
[592]25 * @return Vocabulary name for installtype field
[591]26 */
[592]27 public static String getVocabularyName_InstallType() {
28 return "Install method";
29 }
30
[591]31 /**
[592]32 * @return Vocabulary name for modtype field
[591]33 */
[592]34 public static String getVocabularyName_ModType() {
35 return "Mod type";
36 }
37
[591]38 /**
[592]39 * @return Taxonomy term name for platform value Win
[591]40 */
[592]41 public static String getTaxonomyName_Platform_Win() {
42 return "Windows";
43 }
44
[591]45 /**
[592]46 * @return Taxonomy term name for platform value Mac
[591]47 */
[592]48 public static String getTaxonomyName_Platform_Mac() {
49 return "Mac OS";
50 }
51
[591]52 /**
[592]53 * @return Taxonomy term name for platform value Both
[591]54 */
[592]55 public static String getTaxonomyName_Platform_Both() {
56 return "Both";
57 }
[591]58
59 /**
[592]60 * @return Taxonomy term name for installtype Package
[591]61 */
[592]62 public static String getTaxonomyName_InstallType_Package() {
63 return "Package";
64 }
[604]65
[602]66 /**
67 * @return Taxonomy term name for modtype Tool
68 */
69 public static String getTaxonomyName_ModType_Tool() {
70 return "Tool";
71 }
[604]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 }
[621]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 }
[591]95}
Note: See TracBrowser for help on using the repository browser.