CodeResult

CodeResult

Represents the result that is returned after running a code

Constructor

new CodeResult()

Source:

Members

date :string

Source:
The date the code was executed
Type:
  • string

errorCode :number

Source:
The error code. Seems to only be 0 when no error and 2 when there is an error
Type:
  • number

id :number

Source:
The ID of this result. (Not the ID of the code itself)
Type:
  • number

(nullable) input :string

Source:
The input that was used when running the code
Type:
  • string

language :Language

Source:
The programming language this code was written in
Type:

(nullable) output :string

Source:
The output of this code, null if this is a web code
Type:
  • string

sourceCode :string

Source:
The source code that was used
Type:
  • string

status :number

Source:
The status code. Seems to always be 2 (?)
Type:
  • number

userID :number

Source:
The user ID of the user who ran the code
Type:
  • number