def printGetResultTypes(jobId):
    printDebugMessage(u'printGetResultTypes', u'Begin', 1)
    if (outputLevel > 0):
        print(('Getting result types for job %s' % jobId))
    resultTypeList = serviceGetResultTypes(jobId)
    if (outputLevel > 0):
        print('Available result types:')
    for resultType in resultTypeList:
        print(resultType[u'identifier'])
        if hasattr(resultType, u'label'):
            print(u'\t', resultType[u'label'])
        if hasattr(resultType, u'description'):
            print(u'\t', resultType[u'description'])
        if hasattr(resultType, u'mediaType'):
            print(u'\t', resultType[u'mediaType'])
        if hasattr(resultType, u'fileSuffix'):
            print(u'\t', resultType[u'fileSuffix'])
    if (outputLevel > 0):
        print(('To get results:\n  python %s --polljob --jobid %s\n  python %s --polljob --outformat <type> --jobid %s' % (os.path.basename(__file__), jobId, os.path.basename(__file__), jobId)))
    printDebugMessage(u'printGetResultTypes', u'End', 1)
def printGetResultTypes(jobId):
    printDebugMessage(u'printGetResultTypes', u'Begin', 1)
    if (outputLevel > 0):
        print(('Getting result types for job %s' % jobId))
    resultTypeList = serviceGetResultTypes(jobId)
    if (outputLevel > 0):
        print('Available result types:')
    for resultType in resultTypeList:
        print(resultType[u'identifier'])
        if hasattr(resultType, u'label'):
            print(u'\t', resultType[u'label'])
        if hasattr(resultType, u'description'):
            print(u'\t', resultType[u'description'])
        if hasattr(resultType, u'mediaType'):
            print(u'\t', resultType[u'mediaType'])
        if hasattr(resultType, u'fileSuffix'):
            print(u'\t', resultType[u'fileSuffix'])
    if (outputLevel > 0):
        print(('To get results:\n  python %s --polljob --jobid %s\n  python %s --polljob --outformat <type> --jobid %s' % (os.path.basename(__file__), jobId, os.path.basename(__file__), jobId)))
    printDebugMessage(u'printGetResultTypes', u'End', 1)