class NCTU::OJ::Client

Defined in:

client/client.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Instance Method Summary

Constructor Detail

def self.new(token, group_id) #

[View source]

Instance Method Detail

def clear_test_data(problem_id) #

[View source]
def delete(path : String) #

[View source]
def execute(id) #

[View source]
def file(submission_id) #

[View source]
def get(path : String, params : Hash(String, Array(String))) #

[View source]
def get(path : String, params : HTTP::Params | Nil = nil) #

[View source]
def input_file(test_data_id) #

[View source]
def output_file(test_data_id) #

[View source]
def post(path : String, body : Hash(String, Array(String)) | IO = IO::Memory.new, content_type : String | Nil = nil) #

[View source]
def problems #

[View source]
def rejudge(id) #

[View source]
def submission(id) #

[View source]
def submissions(problem_id, verdict_name = "") #

[View source]
def test_data(problem_id) #

[View source]
def upload_test_data(problem_id, sample, input, output, time_limit, memory_limit, output_limit, score) #

[View source]
def users #

[View source]