Thunderkick Java Client

Thunderkick casino java client

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.lindar
ArtifactId

ArtifactId

thunderkick-client
Last Version

Last Version

1.0.16
Release Date

Release Date

Type

Type

jar
Description

Description

Thunderkick Java Client
Thunderkick casino java client
Project URL

Project URL

http://www.lindar.com/
Source Code Management

Source Code Management

https://github.com/lindar-open/thunderkick-client.git

Download thunderkick-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.lindar/thunderkick-client/ -->
<dependency>
    <groupId>com.lindar</groupId>
    <artifactId>thunderkick-client</artifactId>
    <version>1.0.16</version>
</dependency>
// https://jarcasting.com/artifacts/com.lindar/thunderkick-client/
implementation 'com.lindar:thunderkick-client:1.0.16'
// https://jarcasting.com/artifacts/com.lindar/thunderkick-client/
implementation ("com.lindar:thunderkick-client:1.0.16")
'com.lindar:thunderkick-client:jar:1.0.16'
<dependency org="com.lindar" name="thunderkick-client" rev="1.0.16">
  <artifact name="thunderkick-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.lindar', module='thunderkick-client', version='1.0.16')
)
libraryDependencies += "com.lindar" % "thunderkick-client" % "1.0.16"
[com.lindar/thunderkick-client "1.0.16"]

Dependencies

compile (2)

Group / Artifact Type Version
com.lindar : acolyte jar 1.4.3
com.lindar : well-rested-client jar 1.6.1

Project Modules

There are no modules declared in this project.

thunderkick-client

Thunderkick Casino API client written in Java

Supports the account endpoints and the free rounds template and assignments.

Some Examples (more to come):

Build

Thunderkick thunderkick = Thunderkick.build(accessCredentials); // OR
Thunderkick thunderkick = Thunderkick.build(apiUrl, operatorId, username, password);

Get or Search for Free Rounds Template

Result<FreeRoundsTemplate> template = thunderkick.freeRoundsTemplate().get(templateRef);

FreeRoundsTemplateSearchQuery searchQuery = new FreeRoundsTemplateSearchQuery();
LocalDateTime sixMonthsAgo = LocalDateTime.now().minusMonths(6);
searchQuery.setCreationDateFrom(fromLocalDate(sixMonthsAgo));
Result<FreeRoundsTemplateList> templates = thunderkick.freeRoundsTemplate().search(searchQuery);

Assign or Search for Assignments

String playerRef = "myRef";
String templateRef = "templateRef";
String playerTemplateRef = playerRef + templateRef;

FreeRoundsTemplatePlayerAssignment freeRoundsTemplatePlayerAssignment = new FreeRoundsTemplatePlayerAssignment(fromLocalDate(LocalDateTime.now()), fromLocalDate(LocalDateTime.now().plusMonths(1)), templateRef);

// assign to player
Result<Void> assignment = thunderkick.freeRounds().assignByPlayerRef(playerRef, playerTemplateRef, freeRoundsTemplatePlayerAssignment);

// view player assignments
Result<FreeRoundsTemplatePlayerAssignments> assignments = thunderkick.freeRounds().getPlayerAssignmentsByPlayerRef(playerRef, false);

Note: When there's an error the Result class contains the message and error code.

Usage:

<dependency>
    <groupId>com.lindar</groupId>
    <artifactId>thunderkick-client</artifactId>
    <version>1.0.0</version>
</dependency>
com.lindar

Lindar Media

All our open-source projects in one place

Versions

Version
1.0.16
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2