public void InitData(IShopStateClient client, ShopAccessor accessor, ChangeStorage storage) { _storage = storage; _accessor = accessor; LD_Groups.Init(client.Groups, storage); LD_Offers.Init(client.Offers, storage); LD_Transactions.Init(client.Transactions, storage); }
public void InitData(string root, ChangeStorage storage, ShopAccessor accessor) { _accessor = accessor; _storage = storage; DataId = root; LD_Groups?.Init($"{DataId}.good_groups", storage, _Groups); LD_Offers?.Init($"{DataId}.offers", storage, _Offers); LD_Transactions?.Init($"{DataId}.transactions", storage, _Transactions); }
public IReadOnlyReactiveProperty <IGoodGroupItemClient> GetGroupsProperty(Int32 key) { return(LD_Groups.GetProperty(key)); }