Пример #1
0
 public void GetGesture(string projectName, string gestureName, GetGestureCallback callback)
 {
     throw new NotImplementedException();
 }
Пример #2
0
        public void GetGesture(string projectName, string gestureName, GetGestureCallback callback)
        {
            Exception e = null;
            string data = string.Empty;
            if (_firstTime)
            {
                GetAllProjects(null);
                Thread.Sleep(10000); //Wait for all projects to download from web
            }
            if (_localCache.Contains(projectName, gestureName))
            {
                data = _localCache.Get(projectName, gestureName);
            }
            else
            {
                e = new Exception("No Gesture or project by that name");
            }

            if (callback != null)
            {
                callback(projectName, gestureName, data, e);
            }
        }
Пример #3
0
        public void GetGesture(string projectName, string gestureName, GetGestureCallback callback)
        {
            Tuple<string, string, GetGestureCallback> state = new Tuple<string, string, GetGestureCallback>(projectName, gestureName, callback);

            _dataService.GetGestureDataAsync(_accountName, projectName, gestureName, state);
        }
Пример #4
0
 public void GetGesture(string projectName, string gestureName, GetGestureCallback callback)
 {
     _storage.GetGesture(projectName, gestureName, callback);
 }