diff --git a/CourseService.cs b/CourseService.cs index 70008d7..4ff524d 100644 --- a/CourseService.cs +++ b/CourseService.cs @@ -263,48 +263,6 @@ public AsyncImportResult GetAsyncImportResult(String tokenId) return new AsyncImportResult(response); } - - /// - /// Import new version of an existing course from a SCORM .pif (zip file) - /// on the local filesystem. - /// - /// Unique Identifier for this course. - /// Full path to the .zip file - /// List of Import Results - public List VersionCourse(string courseId, string absoluteFilePathToZip) - { - UploadResult uploadResult = manager.UploadService.UploadFile(absoluteFilePathToZip, null); - String server = uploadResult.server; - String location = uploadResult.location; - List results = null; - try { - results = VersionUploadedCourse(courseId, location, server); - } - finally { - manager.UploadService.DeleteFile(location); - } - return results; - } - - /// - /// Import new version of an existing course from a SCORM .pif (zip file) from - /// an existing .zip file on the Hosted SCORM Engine server. - /// - /// Unique Identifier for this course. - /// Path to file, relative to your upload root - /// List of Import Results - public List VersionUploadedCourse(string courseId, string path, string server) - { - ServiceRequest request = new ServiceRequest(configuration); - if (server != null) { - request.Server = server; - } - request.Parameters.Add("courseid", courseId); - request.Parameters.Add("path", path); - XmlDocument response = request.CallService("rustici.course.versionCourse"); - return ImportResult.ConvertToImportResults(response); - } - /// /// Delete the specified course /// diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index f709987..46055d6 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -1,31 +1,31 @@ -/* Software License Agreement (BSD License) - * - * Copyright (c) 2010-2011, Rustici Software, LLC - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of the nor the - * names of its contributors may be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL Rustici Software, LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - +/* Software License Agreement (BSD License) + * + * Copyright (c) 2010-2017, Rustici Software, LLC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Rustici Software, LLC BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + using System.Reflection; using System.Runtime.InteropServices; @@ -37,7 +37,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Rustici Software")] [assembly: AssemblyProduct("Hosted SCORM Engine Client")] -[assembly: AssemblyCopyright("Copyright © 2009")] +[assembly: AssemblyCopyright("Copyright © 2009-2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -58,5 +58,5 @@ // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.3.0.0")] +[assembly: AssemblyFileVersion("1.3.0.0")]