Skip to content

Commit 4c152e3

Browse files
madmoxreedmclean
authored andcommitted
Added support for xAPI 1.0.3 & default to 1.0.3 for latest version
1 parent 0c7c179 commit 4c152e3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

TinCan/TCAPIVersion.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace TinCan
2020
{
2121
public sealed class TCAPIVersion
2222
{
23+
public static readonly TCAPIVersion V103 = new TCAPIVersion("1.0.3");
2324
public static readonly TCAPIVersion V102 = new TCAPIVersion("1.0.2");
2425
public static readonly TCAPIVersion V101 = new TCAPIVersion("1.0.1");
2526
public static readonly TCAPIVersion V100 = new TCAPIVersion("1.0.0");
@@ -28,7 +29,7 @@ public sealed class TCAPIVersion
2829

2930
public static TCAPIVersion latest()
3031
{
31-
return V101;
32+
return V103;
3233
}
3334

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

4344
known = new Dictionary<String, TCAPIVersion>();
45+
known.Add("1.0.3", V103);
4446
known.Add("1.0.2", V102);
4547
known.Add("1.0.1", V101);
4648
known.Add("1.0.0", V100);
@@ -57,6 +59,7 @@ public static Dictionary<String, TCAPIVersion> GetSupported()
5759
}
5860

5961
supported = new Dictionary<String, TCAPIVersion>();
62+
supported.Add("1.0.3", V103);
6063
supported.Add("1.0.2", V102);
6164
supported.Add("1.0.1", V101);
6265
supported.Add("1.0.0", V100);

0 commit comments

Comments
 (0)