MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / reply

Method reply

packages/hydrooj/src/model/solution.ts:56–58  ·  view source on GitHub ↗
(domainId: string, psid: ObjectId, owner: number, content: string)

Source from the content-addressed store, hash-verified

54 }
55
56 static reply(domainId: string, psid: ObjectId, owner: number, content: string) {
57 return document.push(domainId, document.TYPE_PROBLEM_SOLUTION, psid, 'reply', content, owner);
58 }
59
60 static getReply(domainId: string, psid: ObjectId, psrid: ObjectId) {
61 return document.getSub(domainId, document.TYPE_PROBLEM_SOLUTION, psid, 'reply', psrid);

Callers 1

postReplyMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected