// Affiliations affected by this affiliation request
 // Identities affected by this affiliation request
 public HFCAAffiliationResp(JObject result)
 {
     if (result.ContainsKey("affiliations"))
     {
         Children.AddRange(FromJArray(result["affiliations"] as JArray));
     }
     if (result.ContainsKey("identities"))
     {
         Identities.AddRange(HFCAIdentity.FromJArray(result["identities"] as JArray));
     }
     if (result.ContainsKey("statusCode"))
     {
         StatusCode = result["statusCode"].Value <int>();
     }
 }
 private void GenerateResponse(JObject result)
 {
     if (result.ContainsKey("name"))
     {
         Name = result["name"].Value <string>();
     }
     if (result.ContainsKey("affiliations"))
     {
         childHFCAAffiliations.AddRange(FromJArray(result["affiliations"] as JArray));
     }
     if (result.ContainsKey("identities"))
     {
         identities.AddRange(HFCAIdentity.FromJArray(result["identities"] as JArray));
     }
 }