-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add instruct and perform commands
- Loading branch information
1 parent
b379a28
commit 08997ed
Showing
6 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from canvas_sdk.commands.base import _BaseCommand as BaseCommand | ||
|
||
|
||
class InstructCommand(BaseCommand): | ||
"""A class for managing an Instruct command within a specific note.""" | ||
|
||
class Meta: | ||
key = "instruct" | ||
commit_required_fields = ("instruction",) | ||
|
||
instruction: str | None = None | ||
comment: str | None = None | ||
|
||
@property | ||
def values(self) -> dict: | ||
"""The Instruct command's field values.""" | ||
return {"instruction": self.instruction, "comment": self.comment} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from canvas_sdk.commands.base import _BaseCommand as BaseCommand | ||
|
||
|
||
class PerformCommand(BaseCommand): | ||
"""A class for managing a Perform command within a specific note.""" | ||
|
||
class Meta: | ||
key = "perform" | ||
commit_required_fields = ("cpt_code",) | ||
|
||
cpt_code: str | ||
notes: str | None = None | ||
|
||
@property | ||
def values(self) -> dict: | ||
"""The Perform command's field values.""" | ||
return {"cpt_code": self.cpt_code, "notes": self.notes} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters