Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public static Category Parse(APIClient client, dynamic categoryElement)
  2. {
  3. var category = new Category();
  4.  
  5. //Parse Attributes
  6. category.ID = categoryElement.id as string;
  7. category.RuleSetID = categoryElement.rulesetid as string;
  8. category.Name = categoryElement.name as string;
  9.  
  10. //linked property
  11. category.RuleSet = client.RuleSetClient.GetRuleSet(category.RuleSetID);
  12.  
  13. return category
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement