Skip to content

Commit

Permalink
iOS: Update create code reply
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-magda committed Jul 26, 2024
1 parent 8acaa39 commit ada4c7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ extension Reply {
solution: solution,
checkProfile: checkProfile,
lines: lines,
prompt: nil
prompt: nil,
lintProfile: nil
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ class StepQuizCodeViewModel: ObservableObject {
extension StepQuizCodeViewModel: StepQuizChildQuizInputProtocol {
@objc
func createReply() -> Reply {
Reply(language: viewData.languageStringValue, code: viewData.code)
Reply.Companion.shared.code(
code: viewData.code,
language: viewData.languageStringValue,
lintProfile: nil
)
}

func update(step: Step, dataset: Dataset, reply: Reply?) {
Expand Down Expand Up @@ -148,7 +152,11 @@ extension StepQuizCodeViewModel: StepQuizCodeFullScreenOutputProtocol {

@objc
func syncReply(code: String?) {
let reply = Reply.Companion.shared.code(code: code, language: viewData.languageStringValue)
let reply = Reply.Companion.shared.code(
code: code,
language: viewData.languageStringValue,
lintProfile: nil
)
moduleOutput?.handleChildQuizSync(reply: reply)
}
}

0 comments on commit ada4c7d

Please sign in to comment.