/// <summary> /// Reads merge options for the specified search result from <see cref="P:Results.Entries"/>. /// </summary> /// <param name="entry">A search result entry from <see cref="P:Results.Entries"/>.</param> /// <param name="options">The options to apply before executing the REST API call.</param> /// <returns> /// A <see cref="PersonMergeState"/> instance containing the REST API response. /// </returns> public PersonMergeState ReadMergeOptions(Gx.Atom.Entry entry, params IStateTransitionOption[] options) { Link link = entry.GetLink(Rel.MERGE); if (link == null || link.Href == null) { return null; } IRestRequest request = RequestUtil.ApplyFamilySearchConneg(CreateAuthenticatedRequest()).Build(link.Href, Method.OPTIONS); return ((FamilySearchStateFactory)this.stateFactory).NewPersonMergeState(request, Invoke(request, options), this.Client, this.CurrentAccessToken); }