Skip to content

FS Gedcomx property and data loading #41

@weitzhandler

Description

@weitzhandler

Hi,

I am new to the API and I was wondering whether all the classes in the API (let's say PersonState) store genealogy info (in properties), or are just a means for request data, but not to be used as entity classes.

It's just that I still didn't manage to load current user as a person record along with its birth date and some other conclusions.

Here's my code:

var uri = new Uri("https://integration.familysearch.org/platform/collections/tree");
var tree = new FamilySearchFamilyTree(uri);
var state = tree.AuthenticateViaOAuth2Password(Username, Password, ClientId);

Debug.Assert(state.IsAuthenticated);
var current = tree.ReadPersonForCurrentUser();
var name = current.GetName(); //null
var conclusion = current.GetConclusion(); //null
var conclusions = current.LoadConclusions();

Now my question is what's next? Why is the name and conclusion field null, if the tree looks like so:

Here's a screenshot of what I see in my debugger for the variable conclusions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions