public Budget(YnabApiSettings settings, string budgetName, string budgetPath) { this._settings = settings; this.BudgetName = budgetName; this.BudgetPath = budgetPath; }
public RegisteredDevice(YnabApiSettings settings, Budget budget, JObject device) { this._settings = settings; this._device = device; this.Budget = budget; this.FriendlyName = device.Value<string>("friendlyName"); this.ShortDeviceId = device.Value<string>("shortDeviceId"); this.HasFullKnowledge = device.Value<bool>("hasFullKnowledge"); this.KnowledgeString = device.Value<string>("knowledge"); this.CurrentKnowledge = Knowledge.ExtractKnowledgeForDevice(this.KnowledgeString, this.ShortDeviceId); this.DeviceGuid = device.Value<string>("deviceGUID"); this.YnabVersion = device.Value<string>("YNABVersion"); this.DeviceType = device.Value<string>("deviceType"); }