示例#1
0
        private void SetAndCacheText(PatchKit.Api.Models.Main.App app)
        {
            string displayName = app.DisplayName;

            GetCache(app.Secret).SetValue(TitleCacheKey, displayName);
            Text.text = displayName;

            _hasBeenSet = true;
        }
示例#2
0
        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));
            }
        }
示例#3
0
 public App(AppData data)
 {
     _data = data;
 }
示例#4
0
 public void RemoveEntry(BuildTarget target, App app)
 {
     _appsList = _appsList
                 .Where(entry => entry.Target != target && entry.Secret != app.Secret)
                 .ToList();
 }
示例#5
0
 public void RemoveEntry(App app)
 {
     _appsList = _appsList
                 .Where(entry => entry.Secret != app.Secret)
                 .ToList();
 }