Ejemplo n.º 1
0
        public void SaveProgress(string bookID, Position position)
        {
            if (!CanSync())
            {
                return;
            }

            var progress = new Progress {
                DeviceName = UserSettings.Synchronization.DeviceName,
                Position   = position,
            };

            var path = this.PathGenerator(bookID, ProgressNode);

            _cloudStorageService.SaveJson(progress, path);
        }