Exemplo n.º 1
0
 public void SetAbilityDataContract(AbilityDataContract abilityData)
 {
     this.Created            = abilityData.Created;
     this.Description        = abilityData.Description;
     this.Id                 = abilityData.Id;
     this.Modified           = abilityData.Modified;
     this.Name               = abilityData.Name;
     this.AbilityResourceUri = abilityData.AbilityResourceUri;
 }
Exemplo n.º 2
0
        public AbilityDataContract httpGetAbility()
        {
            AbilityDataContract ability = new AbilityDataContract();
            string jsonStr = base.HttpGet(AbilityResourceUri);

            ability = JsonConvert.DeserializeObject <AbilityDataContract>(jsonStr);

            Debug.WriteLine("Ability Id: " + ability.Id + ", Ability Name: " + ability.Name);

            return(ability);
        }