public void Set(GetStatusOptions other) { if (other != null) { m_ApiVersion = FriendsInterface.GetstatusApiLatest; LocalUserId = other.LocalUserId; TargetUserId = other.TargetUserId; } }
/// <summary> /// Retrieve the friendship status between the local user and another user. /// <seealso cref="FriendsStatus" /> /// </summary> /// <param name="options">structure containing the Epic Online Services Account ID of the friend list to check and the account of the user to test friendship status</param> /// <returns> /// A value indicating whether the two accounts have a friendship, pending invites in either direction, or no relationship /// <see cref="FriendsStatus.Friends" /> is returned for two users that have confirmed friendship /// <see cref="FriendsStatus.InviteSent" /> is returned when the local user has sent a friend invitation but the other user has not accepted or rejected it /// <see cref="FriendsStatus.InviteReceived" /> is returned when the other user has sent a friend invitation to the local user /// <see cref="FriendsStatus.NotFriends" /> is returned when there is no known relationship /// </returns> public FriendsStatus GetStatus(GetStatusOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <GetStatusOptionsInternal, GetStatusOptions>(ref optionsAddress, options); var funcResult = EOS_Friends_GetStatus(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }