public TypeDataContract httpGetSprite() { TypeDataContract type = new TypeDataContract(); string jsonStr = base.HttpGet(TypeResourceUri); type = JsonConvert.DeserializeObject <TypeDataContract>(jsonStr); Debug.WriteLine("Type Id: " + type.Id + ", Type Name: " + type.Name); return(type); }
public void SetTypeDataContract(TypeDataContract typeData) { this.Created = typeData.Created; this.Id = typeData.Id; this.Ineffective = typeData.Ineffective; this.Modified = typeData.Modified; this.Name = typeData.Name; this.NoEffect = typeData.NoEffect; this.Resistance = typeData.Resistance; this.TypeResourceUri = typeData.TypeResourceUri; this.SuperEffective = typeData.SuperEffective; this.Weakness = typeData.Weakness; }