All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codedisaster.steamworks.SteamAuth Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package com.codedisaster.steamworks;

/**
 * Enums shared by SteamUser and SteamGameServer
 */
public class SteamAuth {

	public enum BeginAuthSessionResult {
		OK,
		InvalidTicket,
		DuplicateRequest,
		InvalidVersion,
		GameMismatch,
		ExpiredTicket;

		private static final BeginAuthSessionResult[] values = values();

		static BeginAuthSessionResult byOrdinal(int authSessionResponse) {
			return values[authSessionResponse];
		}
	}

	public enum AuthSessionResponse {
		OK,
		UserNotConnectedToSteam,
		NoLicenseOrExpired,
		VACBanned,
		LoggedInElseWhere,
		VACCheckTimedOut,
		AuthTicketCanceled,
		AuthTicketInvalidAlreadyUsed,
		AuthTicketInvalid,
		PublisherIssuedBan;

		private static final AuthSessionResponse[] values = values();

		static AuthSessionResponse byOrdinal(int authSessionResponse) {
			return values[authSessionResponse];
		}
	}

	public enum UserHasLicenseForAppResult {
		HasLicense,
		DoesNotHaveLicense,
		NoAuth;

		private static final UserHasLicenseForAppResult[] values = values();

		static UserHasLicenseForAppResult byOrdinal(int result) {
			return values[result];
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy