Skip to content

Commit

Permalink
rename url parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxbits committed Mar 20, 2019
1 parent d6ab390 commit c456a1a
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/main/java/de/onyxbits/raccoon/Bookmarks.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
package de.onyxbits.raccoon;

import java.net.URI;
import java.util.Currency;
import java.util.Locale;

/**
* A central registry for urls used in various places.
Expand All @@ -31,15 +33,23 @@ public final class Bookmarks {
public static final URI HANDBOOK = BASE.resolve("/handbook");
public static final URI RELEASES = BASE.resolve("/releases");
public static final URI LATEST = BASE.resolve("latestversion");
public static final URI SETUP = BASE.resolve("/content/first-steps-setup-wizard");
public static final URI SETUP = BASE
.resolve("/content/first-steps-setup-wizard");

public static final URI SHOUTBOXFEED = BASE.resolve("/feed/shoutbox");

public static final URI USB_DEBUGGING = BASE.resolve("/content/enable-usb-debugging");
public static final URI USB_DEBUGGING = BASE
.resolve("/content/enable-usb-debugging");

public static final URI FEATURELIST = PREMIUM.resolve("/benefits");

public static final URI ORDER = PREMIUM.resolve("/");
public static final URI SUPPORT = PREMIUM.resolve("/support/email");
public static final URI FEATURELIST;
public static final URI ORDER;
public static final URI SUPPORT;

static {
Currency currency = Currency.getInstance(Locale.getDefault());
String cc = currency.getCurrencyCode().toLowerCase();
FEATURELIST = PREMIUM.resolve("/benefits?offer=" + cc);
ORDER = PREMIUM.resolve("/?offer=" + cc);
SUPPORT = PREMIUM.resolve("/support/email?offer=" + cc);
}
}

0 comments on commit c456a1a

Please sign in to comment.