Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchFamilyTree(Uri uri, IFilterableRestClient client, FamilyTreeStateFactory stateFactory)
     : this(new RedirectableRestRequest().Accept(MediaTypes.GEDCOMX_JSON_MEDIA_TYPE).Build(uri, Method.GET), client, stateFactory)
 {
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="response">The REST API response that was produced from the REST API request.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="accessToken">The access token to use for subsequent invocations of the REST API client.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 internal FamilySearchFamilyTree(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, FamilyTreeStateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchFamilyTree(Uri uri, FamilyTreeStateFactory stateFactory)
     : this(uri, stateFactory.LoadDefaultClientInt(uri), stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeHistoryState"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="response">The REST API response that was produced from the REST API request.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="accessToken">The access token to use for subsequent invocations of the REST API client.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 protected internal ChangeHistoryState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, FamilyTreeStateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchFamilyTree(IRestRequest request, IFilterableRestClient client, FamilyTreeStateFactory stateFactory)
     : this(request, client.Handle(request), client, null, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchFamilyTree(IRestRequest request, IFilterableRestClient client, FamilyTreeStateFactory stateFactory)
     : this(request, client.Handle(request), client, null, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchFamilyTree(Uri uri, IFilterableRestClient client, FamilyTreeStateFactory stateFactory)
     : this(new RedirectableRestRequest().Accept(MediaTypes.GEDCOMX_JSON_MEDIA_TYPE).Build(uri, Method.GET), client, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target resides.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private FamilySearchFamilyTree(Uri uri, FamilyTreeStateFactory stateFactory)
     : this(uri, stateFactory.LoadDefaultClientInt(uri), stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilySearchFamilyTree"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="response">The REST API response that was produced from the REST API request.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="accessToken">The access token to use for subsequent invocations of the REST API client.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 internal FamilySearchFamilyTree(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, FamilyTreeStateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FamilyTreePersonParentsState"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this state instance.</param>
 /// <param name="response">The REST API response that was produced from the REST API request.</param>
 /// <param name="client">The REST API client to use for API calls.</param>
 /// <param name="accessToken">The access token to use for subsequent invocations of the REST API client.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 protected internal FamilyTreePersonParentsState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, FamilyTreeStateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }