Esempio n. 1
0
 // 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>();
     }
 }
Esempio n. 2
0
 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));
     }
 }