Merge pull request #2123 from wing328/csharp_add_uuid

[C#] map `uuid` to 'Guid`in C# abstract base class
This commit is contained in:
wing328 2016-02-12 23:05:30 +08:00
commit 847a8e1f3d
2 changed files with 10 additions and 0 deletions

View File

@ -85,6 +85,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
"Int32",
"Int64",
"Float",
"Guid",
"Stream", // not really a primitive, we include it to avoid model import
"Object")
);
@ -110,6 +111,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
typeMapping.put("list", "List");
typeMapping.put("map", "Dictionary");
typeMapping.put("object", "Object");
typeMapping.put("uuid", "Guid");
}
public void setReturnICollection(boolean returnICollection) {

View File

@ -0,0 +1,8 @@
#!/bin/bash
# a script to simply wait for X seconds before contining the CI tests
# the delay can help prevent 2 CI tests running at the same time as
# all CI tests use the same petstore server for testing.
TIMEOUT=$(( ( RANDOM % 60 ) + 1 ))
read -p 'Press any key to continue or wait for $TIMEOUT seconds' -t $TIMEOUT