It is recommended to call this in a 2 second interval
+ */
void Discord_RunCallbacks();
+
+ /**
+ * Polls events from the RPC pipe and pushes the currently queued presence.
+ *
This will be performed automatically if the attached binary
+ * has an enabled IO thread (default)
+ *
+ *
If the IO-Thread has been enabled this will not be supported!
+ */
void Discord_UpdateConnection();
+ /**
+ * Updates the currently set presence of the logged in user.
+ *
Note that the client only updates its presence every 15 seconds
+ * and queues all additional presence updates.
+ *
+ * @param struct
+ * The new presence to use, or null to reset
+ *
+ * @see club.minnced.discord.rpc.DiscordRichPresence
+ */
void Discord_UpdatePresence(DiscordRichPresence struct);
+
+ /**
+ * Responds to the given user with the specified reply type.
+ *
+ *
Maximum: 128 characters
+ */
public String state;
+
+ /**
+ * What the player is currently doing.
+ *
Example: "Competitive - Captain's Mode", "In Queue", "Unranked PvP"
+ *
+ *
Maximum: 128 characters
+ */
public String details;
+
+ /**
+ * Unix timestamp (seconds) for the start of the game.
+ *
Example: 1507665886
+ */
public long startTimestamp;
+
+ /**
+ * Unix timestamp (seconds) for the start of the game.
+ *
Example: 1507665886
+ */
public long endTimestamp;
+
+ /**
+ * Name of the uploaded image for the large profile artwork.
+ *
Example: "default"
+ *
+ *
Maximum: 32 characters
+ */
public String largeImageKey;
+
+ /**
+ * Tooltip for the largeImageKey.
+ *
Example: "Blade's Edge Arena", "Numbani", "Danger Zone"
+ *
+ *
Maximum: 128 characters
+ */
public String largeImageText;
+
+ /**
+ * Name of the uploaded image for the small profile artwork.
+ *
Example: "rogue"
+ *
+ *
Maximum: 32 characters
+ */
public String smallImageKey;
+
+ /**
+ * Tooltip for the smallImageKey.
+ *
Example: "Rogue - Level 100"
+ *
+ *
Maximum: 128 characters
+ */
public String smallImageText;
+
+ /**
+ * ID of the player's party, lobby, or group.
+ *
Example: "ae488379-351d-4a4f-ad32-2b9b01c91657"
+ *
+ *
Maximum: 128 characters
+ */
public String partyId;
+
+ /**
+ * Current size of the player's party, lobby, or group.
+ *
Example: 1
+ */
public int partySize;
+
+ /**
+ * Maximum size of the player's party, lobby, or group.
+ *
Example: 5
+ */
public int partyMax;
+
+ /**
+ * Unique hashed string for Spectate and Join.
+ * Required to enable match interactive buttons in the user's presence.
+ *
Example: "MmhuZToxMjMxMjM6cWl3amR3MWlqZA=="
+ *
+ *
Maximum: 128 characters
+ */
public String matchSecret;
+
+ /**
+ * Unique hashed string for Spectate button.
+ * This will enable the "Spectate" button on the user's presence if whitelisted.
+ *
Example: "MTIzNDV8MTIzNDV8MTMyNDU0"
+ *
+ *
Maximum: 128 characters
+ */
public String joinSecret;
+
+ /**
+ * Unique hashed string for chat invitations and Ask to Join.
+ * This will enable the "Ask to Join" button on the user's presence if whitelisted.
+ *
Example: "MTI4NzM0OjFpMmhuZToxMjMxMjM="
+ *
+ *
Maximum: 128 characters
+ */
public String spectateSecret;
+
+ /**
+ * Marks the matchSecret as a game session with a specific beginning and end.
+ * Boolean value of 0 or 1.
+ *
Example: 1
+ */
public byte instance;
@Override
diff --git a/src/main/java/club/minnced/discord/rpc/package-info.java b/src/main/java/club/minnced/discord/rpc/package-info.java
new file mode 100644
index 0000000..1405955
--- /dev/null
+++ b/src/main/java/club/minnced/discord/rpc/package-info.java
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2016 - 2017 Florian Spieß
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Java bindings for the official Discord RPC SDK.
+ */
+package club.minnced.discord.rpc;