com.codedisaster.steamworks.SteamUserCallbackAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of steamworks4j Show documentation
Show all versions of steamworks4j Show documentation
Java wrapper to access the Steamworks API.
package com.codedisaster.steamworks;
@SuppressWarnings("unused")
class SteamUserCallbackAdapter extends SteamCallbackAdapter {
SteamUserCallbackAdapter(SteamUserCallback callback) {
super(callback);
}
void onValidateAuthTicket(long steamID, int authSessionResponse, long ownerSteamID) {
callback.onValidateAuthTicket(new SteamID(steamID),
SteamAuth.AuthSessionResponse.byOrdinal(authSessionResponse), new SteamID(ownerSteamID));
}
void onMicroTxnAuthorization(int appID, long orderID, boolean authorized) {
callback.onMicroTxnAuthorization(appID, orderID, authorized);
}
}