public void Set(GetFriendsCountOptions other) { if (other != null) { m_ApiVersion = FriendsInterface.GetfriendscountApiLatest; LocalUserId = other.LocalUserId; } }
/// <summary> /// Retrieves the number of friends on the friends list that has already been retrieved by the <see cref="QueryFriends" /> API. /// <seealso cref="GetFriendAtIndex" /> /// </summary> /// <param name="options">structure containing the Epic Online Services Account ID of user who owns the friends list</param> /// <returns> /// the number of friends on the list /// </returns> public int GetFriendsCount(GetFriendsCountOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <GetFriendsCountOptionsInternal, GetFriendsCountOptions>(ref optionsAddress, options); var funcResult = EOS_Friends_GetFriendsCount(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }