private void SetAndCacheText(PatchKit.Api.Models.Main.App app) { string displayName = app.DisplayName; GetCache(app.Secret).SetValue(TitleCacheKey, displayName); Text.text = displayName; _hasBeenSet = true; }
public void UpdateEntry(BuildTarget target, App app) { Predicate <CacheEntry> predicate = entry => entry.Target == target; if (_appsList.Exists(predicate)) { var existingEntry = _appsList.Find(predicate); existingEntry.Secret = app.Secret; } else { _appsList.Add(new CacheEntry(target, app.Secret)); } }
public App(AppData data) { _data = data; }
public void RemoveEntry(BuildTarget target, App app) { _appsList = _appsList .Where(entry => entry.Target != target && entry.Secret != app.Secret) .ToList(); }
public void RemoveEntry(App app) { _appsList = _appsList .Where(entry => entry.Secret != app.Secret) .ToList(); }