Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Category Parse(APIClient client, dynamic categoryElement)
- {
- var category = new Category();
- //Parse Attributes
- category.ID = categoryElement.id as string;
- category.RuleSetID = categoryElement.rulesetid as string;
- category.Name = categoryElement.name as string;
- //linked property
- category.RuleSet = client.RuleSetClient.GetRuleSet(category.RuleSetID);
- return category
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement