/// <summary>
 /// Initializes a new instance of the <see cref="GedcomxApplicationState{T}"/> class.
 /// </summary>
 protected GedcomxApplicationState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, StateFactory stateFactory)
 {
     linkFactory             = new Tavis.LinkFactory();
     linkHeaderParser        = new Tavis.LinkHeaderParser(linkFactory);
     this.Request            = request;
     this.Response           = response;
     this.Client             = client;
     this.CurrentAccessToken = accessToken;
     this.stateFactory       = stateFactory;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VocabElementListState"/> 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 VocabElementListState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, StateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PersonChildrenState"/> 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 PersonChildrenState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, StateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CollectionState"/> class.
 /// </summary>
 /// <param name="request">The REST API request that will be used to instantiate this CollectionState.</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 CollectionState(IRestRequest request, IFilterableRestClient client, StateFactory stateFactory)
     : this(request, client.Handle(request), client, null, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CollectionState"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target collection 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 CollectionState(Uri uri, IFilterableRestClient client, StateFactory 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="CollectionState"/> class.
 /// </summary>
 /// <param name="uri">The URI where the target collection resides.</param>
 /// <param name="stateFactory">The state factory to use for state instantiation.</param>
 private CollectionState(Uri uri, StateFactory stateFactory)
     : this(uri, stateFactory.LoadDefaultClient(uri), stateFactory)
 {
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RelationshipsState"/> 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 RelationshipsState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, StateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PersonNonMatchesState"/> 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 PersonNonMatchesState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, StateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
Exemple #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AgentState"/> 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 AgentState(IRestRequest request, IRestResponse response, IFilterableRestClient client, String accessToken, StateFactory stateFactory)
     : base(request, response, client, accessToken, stateFactory)
 {
 }
Exemple #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecordState"/> 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 RecordState(Uri uri, StateFactory stateFactory)
     : this(uri, stateFactory.LoadDefaultClient(uri), stateFactory)
 {
 }