Skip to content

Commit

Permalink
removes course.versionCourse API
Browse files Browse the repository at this point in the history
  • Loading branch information
rs-readonly committed Jul 24, 2017
1 parent 9e920be commit c10cf1a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 73 deletions.
42 changes: 0 additions & 42 deletions CourseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,48 +263,6 @@ public AsyncImportResult GetAsyncImportResult(String tokenId)
return new AsyncImportResult(response);
}


/// <summary>
/// Import new version of an existing course from a SCORM .pif (zip file)
/// on the local filesystem.
/// </summary>
/// <param name="courseId">Unique Identifier for this course.</param>
/// <param name="absoluteFilePathToZip">Full path to the .zip file</param>
/// <returns>List of Import Results</returns>
public List<ImportResult> VersionCourse(string courseId, string absoluteFilePathToZip)
{
UploadResult uploadResult = manager.UploadService.UploadFile(absoluteFilePathToZip, null);
String server = uploadResult.server;
String location = uploadResult.location;
List<ImportResult> results = null;
try {
results = VersionUploadedCourse(courseId, location, server);
}
finally {
manager.UploadService.DeleteFile(location);
}
return results;
}

/// <summary>
/// Import new version of an existing course from a SCORM .pif (zip file) from
/// an existing .zip file on the Hosted SCORM Engine server.
/// </summary>
/// <param name="courseId">Unique Identifier for this course.</param>
/// <param name="path">Path to file, relative to your upload root</param>
/// <returns>List of Import Results</returns>
public List<ImportResult> 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);
}

/// <summary>
/// Delete the specified course
/// </summary>
Expand Down
62 changes: 31 additions & 31 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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 <organization> 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 <organization> 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;

Expand All @@ -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("")]

Expand All @@ -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")]

0 comments on commit c10cf1a

Please sign in to comment.