Ejemplo n.º 1
0
public class CFG_CBH {
  public static void main(String[] args) {
    ConfigUtils.printStaticMappings(CaptchaBrotherHoodSettings.class);
  }

  // Static Mappings for interface
  // org.jdownloader.captcha.v2.solver.captchabrotherhood.CaptchaBrotherHoodSettings
  public static final CaptchaBrotherHoodSettings CFG =
      JsonConfig.create(CaptchaBrotherHoodSettings.class);
  public static final StorageHandler<CaptchaBrotherHoodSettings> SH =
      (StorageHandler<CaptchaBrotherHoodSettings>) CFG._getStorageHandler();
  // let's do this mapping here. If we map all methods to static handlers, access is faster, and we
  // get an error on init if mappings are
  // wrong.

  public static final BooleanKeyHandler ENABLED =
      SH.getKeyHandler("Enabled", BooleanKeyHandler.class);

  public static final StringKeyHandler USER = SH.getKeyHandler("User", StringKeyHandler.class);

  public static final StringKeyHandler PASS = SH.getKeyHandler("Pass", StringKeyHandler.class);

  public static final StringKeyHandler BLACK_LIST =
      SH.getKeyHandler("BlackList", StringKeyHandler.class);

  public static final StringKeyHandler WHITE_LIST =
      SH.getKeyHandler("WhiteList", StringKeyHandler.class);
}
Ejemplo n.º 2
0
public class CFG_DBC {
  public static void main(String[] args) {
    ConfigUtils.printStaticMappings(DeathByCaptchaSettings.class);
  }

  // Static Mappings for interface org.jdownloader.captcha.v2.solver.dbc.DeathByCaptchaSettings
  public static final DeathByCaptchaSettings CFG = JsonConfig.create(DeathByCaptchaSettings.class);
  public static final StorageHandler<DeathByCaptchaSettings> SH =
      (StorageHandler<DeathByCaptchaSettings>) CFG._getStorageHandler();
  // let's do this mapping here. If we map all methods to static handlers, access is faster, and we
  // get an error on init if mappings are
  // wrong.

  /** Captcha BlackList for hoster */
  public static final StringKeyHandler BLACK_LIST =
      SH.getKeyHandler("BlackList", StringKeyHandler.class);

  /** Max. Captchas Parallel */
  public static final IntegerKeyHandler THREADPOOL_SIZE =
      SH.getKeyHandler("ThreadpoolSize", IntegerKeyHandler.class);

  /** Captcha WhiteList for hoster */
  public static final StringKeyHandler WHITE_LIST =
      SH.getKeyHandler("WhiteList", StringKeyHandler.class);

  /** Active the deathbycaptcha.eu service */
  public static final BooleanKeyHandler ENABLED =
      SH.getKeyHandler("Enabled", BooleanKeyHandler.class);

  /** Activate the Captcha Feedback */
  public static final BooleanKeyHandler FEED_BACK_SENDING_ENABLED =
      SH.getKeyHandler("FeedBackSendingEnabled", BooleanKeyHandler.class);

  /** Your deathbycaptcha.eu Username */
  public static final StringKeyHandler USER_NAME =
      SH.getKeyHandler("UserName", StringKeyHandler.class);

  /** Your deathbycaptcha.eu Password */
  public static final StringKeyHandler PASSWORD =
      SH.getKeyHandler("Password", StringKeyHandler.class);
}
Ejemplo n.º 3
0
public class CFG_CHAT {
  public static void main(String[] args) {
    ConfigUtils.printStaticMappings(
        ChatConfig.class,
        "Application.getResource(\"cfg/\" + "
            + ChatExtension.class.getSimpleName()
            + ".class.getName())");
  }

  // Static Mappings for interface org.jdownloader.extensions.chat.ChatConfig
  public static final ChatConfig CFG =
      JsonConfig.create(
          Application.getResource("cfg/" + ChatExtension.class.getName()), ChatConfig.class);
  public static final StorageHandler<ChatConfig> SH =
      (StorageHandler<ChatConfig>) CFG._getStorageHandler();
  // let's do this mapping here. If we map all methods to static handlers, access is faster, and we
  // get an error on init if mappings are
  // wrong.
  // true
  public static final BooleanKeyHandler FRESH_INSTALL =
      SH.getKeyHandler("FreshInstall", BooleanKeyHandler.class);
  // false
  public static final BooleanKeyHandler GUI_ENABLED =
      SH.getKeyHandler("GuiEnabled", BooleanKeyHandler.class);
  // true
  public static final BooleanKeyHandler USER_COLOR_ENABLED =
      SH.getKeyHandler("UserColorEnabled", BooleanKeyHandler.class);
  // 6667
  public static final IntegerKeyHandler IRC_PORT =
      SH.getKeyHandler("IrcPort", IntegerKeyHandler.class);
  // irc.freenode.net
  public static final StringKeyHandler IRC_SERVER =
      SH.getKeyHandler("IrcServer", StringKeyHandler.class);
  // null
  public static final StringKeyHandler PERFORM_ON_LOGIN_COMMANDS =
      SH.getKeyHandler("PerformOnLoginCommands", StringKeyHandler.class);
  // false
  public static final BooleanKeyHandler ENABLED =
      SH.getKeyHandler("Enabled", BooleanKeyHandler.class);
  // #jDownloader
  public static final StringKeyHandler CHANNEL =
      SH.getKeyHandler("Channel", StringKeyHandler.class);
  // null
  public static final StringKeyHandler NICK = SH.getKeyHandler("Nick", StringKeyHandler.class);
  // null
  public static final StringKeyHandler CHANNEL_LANGUAGE =
      SH.getKeyHandler("ChannelLanguage", StringKeyHandler.class);
  // 0
  public static final IntegerKeyHandler USER_LIST_POSITION =
      SH.getKeyHandler("UserListPosition", IntegerKeyHandler.class);
}