Class Definitions

The following C# class definitions are used to generate the JSON objects returned by Graph-R API calls. You can use them as reference material, so that you know what type of data to expect. Alternatively, you can use them in C# (or adapt them to your chosen language) to deserialize the JSON objects.

public class APIChildRoleGroup
{
    public APIChildRoleGroup() { }
    public string RoleGroupID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
}

public class APIChildSkillGroup
{
    public APIChildSkillGroup() { }
    public string SkillGroupID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
}

public class APIConcept
{
    public APIConcept() { }
    public string ConceptID { get; set; }
    public string Label { get; set; }
    public List<APIRoleMapping> Roles { get; set; }
    public List<APISkillMapping> Skills { get; set; }
}

public class APIConceptMapping
{
    public APIConceptMapping() { }
    public string ConceptID { get; set; }
    public string Label { get; set; }
}

public class APIRole
{
    public APIRole() { }
    public string RoleID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public APIRoleGroupMapping RoleGroup { get; set; }
    public List<APISkillMapping> Skills { get; set; }
    public List<APITaxonomyMapping> Taxonomies { get; set; }
    public List<APIConceptMapping> Concepts { get; set; }
    public List<APITagMapping> Tags { get; set; }
}

public class APIRoleGroup
{
    public APIRoleGroup() { }
    public string RoleGroupID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public string ParentRoleGroupID { get; set; }
    public List<APIChildRoleGroup> ChildRoleGroups { get; set; }
    public List<APIRoleHeader> Roles { get; set; }
}

public class APIRoleGroupMapping
{
    public APIRoleGroupMapping() { }
    public string RoleGroupID { get; set; }
    public string Label { get; set; }
}

public class APIRoleHeader
{
    public APIRoleHeader() { }
    public string RoleID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
}

public class APIRoleMapping
{
    public APIRoleMapping() { }
    public string RoleID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public bool? Optional { get; set; }
    public int? MappedScope { get; set; }
    public double? Relevance { get; set; }
    public string RelevantText { get; set; }
}

public class APISearchResult
{
    public APISearchResult() { }
    public string ID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public double Relevance { get; set; }
    public string Type { get; set; }
    public string Refiners { get; set; }
}

public class APISearchResults
{
    public APISearchResults() { }
    public List<APISearchResult> Results { get; set; }
    public List<APITaxonomyMapping> Taxonomies { get; set; }
    public List<APIConceptMapping> Concepts { get; set; }
    public List<APITagMapping> Tags { get; set; }
    public bool HasRoles { get; set; }
    public bool HasSkills { get; set; }
}

public class APISkill
{
    public APISkill() { }
    public string SkillID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public APISkillGroupMapping SkillGroup { get; set; }
    public List<APIRoleMapping> Roles { get; set; }
    public List<APITaxonomyMapping> Taxonomies { get; set; }
    public List<APIConceptMapping> Concepts { get; set; }
    public List<APITagMapping> Tags { get; set; }
}

public class APISkillGroup
{
    public APISkillGroup() { }
    public string SkillGroupID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public string ParentSkillGroupID { get; set; }
    public List<APIChildSkillGroup> ChildSkillGroups { get; set; }
    public List<APISkillMapping> Skills { get; set; }
}

public class APISkillGroupMapping
{
    public APISkillGroupMapping() { }
    public string SkillGroupID { get; set; }
    public string Label { get; set; }
}

public class APISkillHeader
{
    public APISkillHeader() { }
    public string SkillID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
}

public class APISkillMapping
{
    public APISkillMapping() { }
    public string SkillID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public bool? Optional { get; set; }
    public int? MappedScope { get; set; }
    public double? Relevance { get; set; }
    public string RelevantText { get; set; }
}

public class APISubscription
{
    public APISubscription() { }
    public string SetupDate { get; set; }
    public string BillingStatus { get; set; }
    public string EvaluationPeriod { get; set; }
    public string EvaluationCallLimit { get; set; }
    public string TotalCallsMade { get; set; }
}

public class APITag
{
    public APITag() { }
    public string TagID { get; set; }
    public string Label { get; set; }
    public List<APIRoleMapping> Roles { get; set; }
    public List<APISkillMapping> Skills { get; set; }
}

public class APITagMapping
{
    public APITagMapping() { }
    public string TagID { get; set; }
    public string Label { get; set; }
}

public class APITaxonomy
{
    public APITaxonomy() { }
    public string TaxonomyID { get; set; }
    public string Label { get; set; }
    public List<APIRoleMapping> Roles { get; set; }
    public List<APISkillMapping> Skills { get; set; }
}

public class APITaxonomyMapping
{
    public APITaxonomyMapping() { }
    public string TaxonomyID { get; set; }
    public string Label { get; set; }
}

public class APITopLevelRoleGroup
{
    public APITopLevelRoleGroup() { }
    public string RoleGroupID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public string ParentRoleGroupID { get; set; }
}

public class APITopLevelSkillGroup
{
    public APITopLevelSkillGroup() { }
    public string SkillGroupID { get; set; }
    public string Label { get; set; }
    public string Description { get; set; }
    public string ParentSkillGroupID { get; set; }
}