Compare commits
No commits in common. "6c031aedc5d3413d6b6b30f1d4bbe54e7fb7f08e" and "cfa49e7e3e6e175632d5e5cd957dc1323731bd02" have entirely different histories.
6c031aedc5
...
cfa49e7e3e
3 changed files with 19 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
||||||
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.8
|
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.7
|
||||||
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
||||||
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.8
|
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.7
|
||||||
bld.extension-detekt=com.uwyn.rife2:bld-detekt:0.9.4
|
bld.extension-detekt=com.uwyn.rife2:bld-detekt:0.9.4
|
||||||
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
|
|
|
@ -34,13 +34,22 @@ package net.thauvin.erik.isgd
|
||||||
/**
|
/**
|
||||||
* Provides a builder to create/lookup an is.gd shortlink.
|
* Provides a builder to create/lookup an is.gd shortlink.
|
||||||
*/
|
*/
|
||||||
class Config private constructor(builder: Builder) {
|
class Config(
|
||||||
val url: String = builder.url
|
var url: String = "",
|
||||||
val shorturl: String = builder.shorturl
|
var shorturl: String = "",
|
||||||
val callback: String = builder.callback
|
var callback: String = "",
|
||||||
val logstats: Boolean = builder.logstats
|
var logstats: Boolean = false,
|
||||||
val format: Format = builder.format
|
var format: Format = Format.SIMPLE,
|
||||||
val isVgd: Boolean = builder.isVgd
|
var isVgd: Boolean = false
|
||||||
|
) {
|
||||||
|
constructor(builder: Builder) : this() {
|
||||||
|
url = builder.url
|
||||||
|
shorturl = builder.shorturl
|
||||||
|
callback = builder.callback
|
||||||
|
logstats = builder.logstats
|
||||||
|
format = builder.format
|
||||||
|
isVgd = builder.isVgd
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures the parameters to create/lookup an is.gd shortlink.
|
* Configures the parameters to create/lookup an is.gd shortlink.
|
||||||
|
@ -64,7 +73,7 @@ class Config private constructor(builder: Builder) {
|
||||||
/**
|
/**
|
||||||
* You can specify the shorturl parameter if you'd like to pick a shortened URL instead of
|
* You can specify the shorturl parameter if you'd like to pick a shortened URL instead of
|
||||||
* having is.gd randomly generate one. These must be between 5 and 30 characters long and can only contain
|
* having is.gd randomly generate one. These must be between 5 and 30 characters long and can only contain
|
||||||
* alphanumeric characters and underscores. Shortened URLs are case-sensitive. Bear in mind that a desired
|
* alphanumeric characters and underscores. Shortened URLs are case sensitive. Bear in mind that a desired
|
||||||
* short URL might already be taken (this is very often the case with common words) so if you're using this
|
* short URL might already be taken (this is very often the case with common words) so if you're using this
|
||||||
* option be prepared to respond to an error and get an alternative choice from your app's user.
|
* option be prepared to respond to an error and get an alternative choice from your app's user.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue