Skip to content

Commit

Permalink
Added support for xAPI 1.0.3 & default to 1.0.3 for latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
madmox authored and reedmclean committed Aug 9, 2018
1 parent 0c7c179 commit 4c152e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TinCan/TCAPIVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace TinCan
{
public sealed class TCAPIVersion
{
public static readonly TCAPIVersion V103 = new TCAPIVersion("1.0.3");
public static readonly TCAPIVersion V102 = new TCAPIVersion("1.0.2");
public static readonly TCAPIVersion V101 = new TCAPIVersion("1.0.1");
public static readonly TCAPIVersion V100 = new TCAPIVersion("1.0.0");
Expand All @@ -28,7 +29,7 @@ public sealed class TCAPIVersion

public static TCAPIVersion latest()
{
return V101;
return V103;
}

private static Dictionary<String, TCAPIVersion> known;
Expand All @@ -41,6 +42,7 @@ public static Dictionary<String, TCAPIVersion> GetKnown()
}

known = new Dictionary<String, TCAPIVersion>();
known.Add("1.0.3", V103);
known.Add("1.0.2", V102);
known.Add("1.0.1", V101);
known.Add("1.0.0", V100);
Expand All @@ -57,6 +59,7 @@ public static Dictionary<String, TCAPIVersion> GetSupported()
}

supported = new Dictionary<String, TCAPIVersion>();
supported.Add("1.0.3", V103);
supported.Add("1.0.2", V102);
supported.Add("1.0.1", V101);
supported.Add("1.0.0", V100);
Expand Down

0 comments on commit 4c152e3

Please sign in to comment.