Beispiel #1
0
        public bool IsUniqueName(string name, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);
            var       obj   = store.get(name);

            return(obj == null);
        }
Beispiel #2
0
        public void Deletes(List <string> ids, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);

            foreach (var item in ids)
            {
                store.Remove(item);
            }
        }
Beispiel #3
0
        public Dictionary <string, string> List(ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);

            Dictionary <string, string> allvalues = new Dictionary <string, string>();

            foreach (var item in store)
            {
                allvalues.Add(item.Key, item.Value);
            }
            return(allvalues);
        }
Beispiel #4
0
        public void Update(string key, string value, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);

            store.set(key, value);
        }
Beispiel #5
0
        public string Get(string key, ApiCall call)
        {
            kKeyValue store = new kKeyValue(call.Context);

            return(store.get(key));
        }