Skip to content

Commit

Permalink
Merge pull request #31 from RusticiSoftware/br-remove-versioncourse
Browse files Browse the repository at this point in the history
removes course.versionCourse API
  • Loading branch information
tedwards authored Jul 24, 2017
2 parents 9e920be + 2039015 commit 79f4e4a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 77 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")]
13 changes: 10 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Software License Agreement (BSD License)

Copyright (c) 2010-2012, Rustici Software, LLC
Copyright (c) 2010-2017, Rustici Software, LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -40,13 +40,20 @@ The demo app is meant to provide examples for how to use many of the basic libra

Updates:

v1.2.1
v1.3.0
* removes rustici.course.versionCourse API.
* adds ability to pass params in for launch URL.

v1.2.0
* added to Nuget repository

v1.1.4
8.29.12
* Modified the CourseService to update the methods of importing courses and to add support for the 'exists' service call. Refer to the .Net HostedDemoApp UploadLearning.aspx to see the prescribed import process.
* Removed the course import web control since it uses the old methods of update.


v1.2.0
v1.1.3
5.15.2012
* Added the InvitationService to the Library

Expand Down
2 changes: 1 addition & 1 deletion RusticiSoftware.HostedEngine.Client.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<owners>rustici-software-systems</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Initial publish to nuget.</releaseNotes>
<releaseNotes>Removes rustici.course.versionCourse and adds ability to pass params to Launch URL.</releaseNotes>
<copyright>Copyright 2017</copyright>
<tags>SCORM rustici elearning AICC xAPI</tags>
</metadata>
Expand Down

0 comments on commit 79f4e4a

Please sign in to comment.