From 94260b489e94dacaa8ccedfad8b8f4637b1a1c79 Mon Sep 17 00:00:00 2001 From: kota-yata Date: Wed, 1 Nov 2023 18:57:06 +0900 Subject: [PATCH] feat(models): add BinaryBool --- birdxplorer/models.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/birdxplorer/models.py b/birdxplorer/models.py index eb8c094..0ca90e2 100644 --- a/birdxplorer/models.py +++ b/birdxplorer/models.py @@ -321,6 +321,9 @@ class NotesBelievable(str, Enum): believable_by_many = "BELIEVABLE_BY_MANY" empty = "" +class BinaryBool(int, Enum): + binary_false = 0 + binary_true = 1 class Note(BaseModel): note_id: NoteId @@ -328,3 +331,18 @@ class Note(BaseModel): created_at_millis: TwitterTimestamp tweet_id: str = Field(pattern=r"^[0-9]{9,19}$") believable: NotesBelievable + misleadingOther: BinaryBool + misleadingFactualError: BinaryBool + misleadingManipulatedMedia: BinaryBool + misleadingOutdatedInformation: BinaryBool + misleadingMissingImportantContext: BinaryBool + misleadingUnverifiedClaimAsFact: BinaryBool + misleadingSatire: BinaryBool + notMisleadingOther: BinaryBool + notMisleadingFactuallyCorrect: BinaryBool + notMisleadingOutdatedButNotWhenWritten: BinaryBool + notMisleadingClearlySatire: BinaryBool + notMisleadingPersonalOpinion: BinaryBool + trustworthySources: BinaryBool + isMediaNote: BinaryBool +