code: def get_type_name(type_name, sub_type=None):
      
      if type_name == "enum":
          return type_name
      elif type_name == "boolean":
          return "bool"
      elif type_name == "integer":
          return "long"
      elif type_name == "time":
          return "long"
      elif type_name == "object":
          return "Object"
      elif type_name == "list":
          return "List"
      elif type_name == "float":
          return "float"
      else:
          return "String"
docs: Returns a c# type according to a spec type