public void Set(GetTransactionCountOptions other) { if (other != null) { m_ApiVersion = EcomInterface.GettransactioncountApiLatest; LocalUserId = other.LocalUserId; } }
public void Set(QueryFriendsOptions other) { if (other != null) { m_ApiVersion = FriendsInterface.QueryfriendsApiLatest; LocalUserId = other.LocalUserId; } }
public void Set(LogoutOptions other) { if (other != null) { m_ApiVersion = AuthInterface.LogoutApiLatest; LocalUserId = other.LocalUserId; } }
public void Set(GetFriendsCountOptions other) { if (other != null) { m_ApiVersion = FriendsInterface.GetfriendscountApiLatest; LocalUserId = other.LocalUserId; } }
public void Set(HideFriendsOptions other) { if (other != null) { m_ApiVersion = UIInterface.HidefriendsApiLatest; LocalUserId = other.LocalUserId; } }
/// <summary> /// Fetches the login status for an account id. /// </summary> /// <param name="localUserId">the account id of the user being queried</param> /// <returns> /// the enum value of a user's login status /// </returns> public LoginStatus GetLoginStatus(EpicAccountId localUserId) { var funcResult = EOS_Auth_GetLoginStatus(InnerHandle, localUserId.InnerHandle); var funcResultReturn = Helper.GetDefault <LoginStatus>(); Helper.TryMarshalGet(funcResult, out funcResultReturn); return(funcResultReturn); }
public void Set(GetOfferCountOptions other) { if (other != null) { m_ApiVersion = EcomInterface.GetoffercountApiLatest; LocalUserId = other.LocalUserId; } }
public void Set(GetFriendsVisibleOptions other) { if (other != null) { m_ApiVersion = UIInterface.GetfriendsvisibleApiLatest; LocalUserId = other.LocalUserId; } }
/// <summary> /// Get the active locale code that the SDK will send to services which require it. /// This returns the override value otherwise it will use the locale code of the given user. /// This is used for localization. This follows ISO 639. /// <seealso cref="Ecom" /> /// <seealso cref="LocalecodeMaxLength" /> /// </summary> /// <param name="localUserId">The account to use for lookup if no override exists.</param> /// <param name="outBuffer">The buffer into which the character data should be written. The buffer must be long enough to hold a string of <see cref="LocalecodeMaxLength" />.</param> /// <param name="inOutBufferLength"> /// The size of the OutBuffer in characters. /// The input buffer should include enough space to be null-terminated. /// When the function returns, this parameter will be filled with the length of the string copied into OutBuffer. /// </param> /// <returns> /// An <see cref="Result" /> that indicates whether the active locale code string was copied into the OutBuffer. /// <see cref="Result.Success" /> if the information is available and passed out in OutBuffer /// <see cref="Result.InvalidParameters" /> if you pass a null pointer for the out parameter /// <see cref="Result.NotFound" /> if there is neither an override nor an available locale code for the user. /// <see cref="Result.LimitExceeded" /> - The OutBuffer is not large enough to receive the locale code string. InOutBufferLength contains the required minimum length to perform the operation successfully. /// </returns> public Result GetActiveLocaleCode(EpicAccountId localUserId, System.Text.StringBuilder outBuffer, ref int inOutBufferLength) { var funcResult = EOS_Platform_GetActiveLocaleCode(InnerHandle, localUserId.InnerHandle, outBuffer, ref inOutBufferLength); var funcResultReturn = Helper.GetDefault <Result>(); Helper.TryMarshalGet(funcResult, out funcResultReturn); return(funcResultReturn); }
public void Set(CreatePresenceModificationOptions other) { if (other != null) { m_ApiVersion = PresenceInterface.CreatepresencemodificationApiLatest; LocalUserId = other.LocalUserId; } }
public void Set(GetEntitlementsCountOptions other) { if (other != null) { m_ApiVersion = EcomInterface.GetentitlementscountApiLatest; LocalUserId = other.LocalUserId; } }
public void Set(GetExternalUserInfoCountOptions other) { if (other != null) { m_ApiVersion = UserInfoInterface.GetexternaluserinfocountApiLatest; LocalUserId = other.LocalUserId; TargetUserId = other.TargetUserId; } }
internal void Set(HideFriendsCallbackInfoInternal?other) { if (other != null) { ResultCode = other.Value.ResultCode; ClientData = other.Value.ClientData; LocalUserId = other.Value.LocalUserId; } }
public void Set(GetStatusOptions other) { if (other != null) { m_ApiVersion = FriendsInterface.GetstatusApiLatest; LocalUserId = other.LocalUserId; TargetUserId = other.TargetUserId; } }
public void Set(GetJoinInfoOptions other) { if (other != null) { m_ApiVersion = PresenceInterface.GetjoininfoApiLatest; LocalUserId = other.LocalUserId; TargetUserId = other.TargetUserId; } }
internal void Set(QueryEntitlementsCallbackInfoInternal?other) { if (other != null) { ResultCode = other.Value.ResultCode; ClientData = other.Value.ClientData; LocalUserId = other.Value.LocalUserId; } }
public void Set(HasPresenceOptions other) { if (other != null) { m_ApiVersion = PresenceInterface.HaspresenceApiLatest; LocalUserId = other.LocalUserId; TargetUserId = other.TargetUserId; } }
public void Set(SendInviteOptions other) { if (other != null) { m_ApiVersion = FriendsInterface.SendinviteApiLatest; LocalUserId = other.LocalUserId; TargetUserId = other.TargetUserId; } }
public void Set(CopyUserInfoOptions other) { if (other != null) { m_ApiVersion = UserInfoInterface.CopyuserinfoApiLatest; LocalUserId = other.LocalUserId; TargetUserId = other.TargetUserId; } }
internal void Set(PresenceChangedCallbackInfoInternal?other) { if (other != null) { ClientData = other.Value.ClientData; LocalUserId = other.Value.LocalUserId; PresenceUserId = other.Value.PresenceUserId; } }
internal void Set(AcceptInviteCallbackInfoInternal?other) { if (other != null) { ResultCode = other.Value.ResultCode; ClientData = other.Value.ClientData; LocalUserId = other.Value.LocalUserId; TargetUserId = other.Value.TargetUserId; } }
public void Set(LinkAccountOptions other) { if (other != null) { m_ApiVersion = AuthInterface.LinkaccountApiLatest; LinkAccountFlags = other.LinkAccountFlags; ContinuanceToken = other.ContinuanceToken; LocalUserId = other.LocalUserId; } }
/// <summary> /// Fetches the login status for an Epic Online Services Account ID. /// </summary> /// <param name="localUserId">The Epic Online Services Account ID of the user being queried</param> /// <returns> /// The enum value of a user's login status /// </returns> public LoginStatus GetLoginStatus(EpicAccountId localUserId) { var localUserIdInnerHandle = System.IntPtr.Zero; Helper.TryMarshalSet(ref localUserIdInnerHandle, localUserId); var funcResult = EOS_Auth_GetLoginStatus(InnerHandle, localUserIdInnerHandle); return(funcResult); }
/// <summary> /// 省略 CopyUserAuthToken /// </summary> /// <param name="auth">AuthInterface</param> /// <param name="localUserId">ログインユーザーID</param> /// <returns>トークン</returns> public static Token CopyUserAuthToken(this AuthInterface auth, EpicAccountId localUserId) { var result = auth.CopyUserAuthToken(new CopyUserAuthTokenOptions(), localUserId, out Token token); if (result == Result.Success) { return(token); } Debug.LogError($"error {DebugTools.GetClassMethodName()}:{result}"); return(null); }
internal void Set(QueryUserInfoByExternalAccountCallbackInfoInternal?other) { if (other != null) { ResultCode = other.Value.ResultCode; ClientData = other.Value.ClientData; LocalUserId = other.Value.LocalUserId; ExternalAccountId = other.Value.ExternalAccountId; AccountType = other.Value.AccountType; TargetUserId = other.Value.TargetUserId; } }
/// <summary> /// Get the active locale code that the SDK will send to services which require it. /// This returns the override value otherwise it will use the locale code of the given user. /// This is used for localization. This follows ISO 639. /// eos_ecom.h /// <seealso cref="LocalecodeMaxLength" /> /// </summary> /// <param name="localUserId">The account to use for lookup if no override exists.</param> /// <param name="outBuffer">The buffer into which the character data should be written. The buffer must be long enough to hold a string of <see cref="LocalecodeMaxLength" />.</param> /// <param name="inOutBufferLength"> /// The size of the OutBuffer in characters. /// The input buffer should include enough space to be null-terminated. /// When the function returns, this parameter will be filled with the length of the string copied into OutBuffer. /// </param> /// <returns> /// An <see cref="Result" /> that indicates whether the active locale code string was copied into the OutBuffer. /// <see cref="Result.Success" /> if the information is available and passed out in OutBuffer /// <see cref="Result.InvalidParameters" /> if you pass a null pointer for the out parameter /// <see cref="Result.NotFound" /> if there is neither an override nor an available locale code for the user. /// <see cref="Result.LimitExceeded" /> - The OutBuffer is not large enough to receive the locale code string. InOutBufferLength contains the required minimum length to perform the operation successfully. /// </returns> public Result GetActiveLocaleCode(EpicAccountId localUserId, out string outBuffer) { var localUserIdInnerHandle = System.IntPtr.Zero; Helper.TryMarshalSet(ref localUserIdInnerHandle, localUserId); System.IntPtr outBufferAddress = System.IntPtr.Zero; int inOutBufferLength = LocalecodeMaxLength + 1; Helper.TryMarshalAllocate(ref outBufferAddress, inOutBufferLength); var funcResult = EOS_Platform_GetActiveLocaleCode(InnerHandle, localUserIdInnerHandle, outBufferAddress, ref inOutBufferLength); Helper.TryMarshalGet(outBufferAddress, out outBuffer); Helper.TryMarshalDispose(ref outBufferAddress); return(funcResult); }
/// <summary> /// Fetches a user auth token for an account id. /// <seealso cref="Release" /> /// <seealso cref="Achievements" /> /// </summary> /// <param name="options">structure containing the api version of CopyUserAuthToken to use</param> /// <param name="localUserId">the account id of the user being queried</param> /// <param name="outUserAuthToken">the auth token for the given user, if it exists and is valid, use <see cref="Release" /> when finished</param> /// <returns> /// <see cref="Result.Success" /> if the information is available and passed out in OutUserAuthToken /// <see cref="Result.InvalidParameters" /> if you pass a null pointer for the out parameter /// <see cref="Result.NotFound" /> if the auth token is not found or expired. /// </returns> public Result CopyUserAuthToken(CopyUserAuthTokenOptions options, EpicAccountId localUserId, out Token outUserAuthToken) { var optionsInternal = Helper.CopyProperties <CopyUserAuthTokenOptionsInternal>(options); outUserAuthToken = Helper.GetDefault <Token>(); var outUserAuthTokenAddress = IntPtr.Zero; var funcResult = EOS_Auth_CopyUserAuthToken(InnerHandle, ref optionsInternal, localUserId.InnerHandle, ref outUserAuthTokenAddress); Helper.TryMarshalDispose(ref optionsInternal); if (Helper.TryMarshalGet <TokenInternal, Token>(outUserAuthTokenAddress, out outUserAuthToken)) { EOS_Auth_Token_Release(outUserAuthTokenAddress); } var funcResultReturn = Helper.GetDefault <Result>(); Helper.TryMarshalGet(funcResult, out funcResultReturn); return(funcResultReturn); }
/// <summary> /// Fetches a user auth token for an Epic Online Services Account ID. /// <seealso cref="Release" /> /// </summary> /// <param name="options">Structure containing the api version of CopyUserAuthToken to use</param> /// <param name="localUserId">The Epic Online Services Account ID of the user being queried</param> /// <param name="outUserAuthToken">The auth token for the given user, if it exists and is valid; use <see cref="Release" /> when finished</param> /// <returns> /// <see cref="Result.Success" /> if the information is available and passed out in OutUserAuthToken /// <see cref="Result.InvalidParameters" /> if you pass a null pointer for the out parameter /// <see cref="Result.NotFound" /> if the auth token is not found or expired. /// </returns> public Result CopyUserAuthToken(CopyUserAuthTokenOptions options, EpicAccountId localUserId, out Token outUserAuthToken) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <CopyUserAuthTokenOptionsInternal, CopyUserAuthTokenOptions>(ref optionsAddress, options); var localUserIdInnerHandle = System.IntPtr.Zero; Helper.TryMarshalSet(ref localUserIdInnerHandle, localUserId); var outUserAuthTokenAddress = System.IntPtr.Zero; var funcResult = EOS_Auth_CopyUserAuthToken(InnerHandle, optionsAddress, localUserIdInnerHandle, ref outUserAuthTokenAddress); Helper.TryMarshalDispose(ref optionsAddress); if (Helper.TryMarshalGet <TokenInternal, Token>(outUserAuthTokenAddress, out outUserAuthToken)) { EOS_Auth_Token_Release(outUserAuthTokenAddress); } return(funcResult); }
private void OnAuthInterfaceLogin(Epic.OnlineServices.Auth.LoginCallbackInfo loginCallbackInfo) { if (loginCallbackInfo.ResultCode == Result.Success) { Debug.Log("Auth Interface Login succeeded"); string accountIdString; Result result = loginCallbackInfo.LocalUserId.ToString(out accountIdString); if (Result.Success == result) { Debug.Log("EOS User ID:" + accountIdString); localUserAccountIdString = accountIdString; localUserAccountId = loginCallbackInfo.LocalUserId; } ConnectInterfaceLogin(); } else { Debug.Log("Login returned " + loginCallbackInfo.ResultCode); } }
/// <summary> /// </summary> /// <param name="epicAccountId"></param> /// <param name="productId"></param> public EpicUser(EpicAccountId epicAccountId, ProductUserId productId) { ProductUserId = productId; EpicAccountId = epicAccountId; }