about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/spam_threshold.py
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/spam_threshold.py
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are here HEAD master
Diffstat (limited to '.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/spam_threshold.py')
-rw-r--r--.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/spam_threshold.py53
1 files changed, 53 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/spam_threshold.py b/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/spam_threshold.py
new file mode 100644
index 00000000..45053dbd
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/spam_threshold.py
@@ -0,0 +1,53 @@
+class SpamThreshold(object):
+    """The threshold used to determine if your content qualifies as spam
+       on a scale from 1 to 10, with 10 being most strict, or most likely
+       to be considered as spam."""
+
+    def __init__(self, spam_threshold=None):
+        """Create a SpamThreshold object
+
+        :param spam_threshold: The threshold used to determine if your content
+                               qualifies as spam on a scale from 1 to 10, with
+                               10 being most strict, or most likely to be
+                               considered as spam.
+        :type spam_threshold: integer, optional
+        """
+        self._spam_threshold = None
+
+        if spam_threshold is not None:
+            self.spam_threshold = spam_threshold
+
+    @property
+    def spam_threshold(self):
+        """The threshold used to determine if your content
+           qualifies as spam on a scale from 1 to 10, with
+           10 being most strict, or most likely to be
+           considered as spam.
+
+        :rtype: integer
+        """
+        return self._spam_threshold
+
+    @spam_threshold.setter
+    def spam_threshold(self, value):
+        """The threshold used to determine if your content
+           qualifies as spam on a scale from 1 to 10, with
+           10 being most strict, or most likely to be
+           considered as spam.
+
+        :param value: The threshold used to determine if your content
+        qualifies as spam on a scale from 1 to 10, with
+        10 being most strict, or most likely to be
+        considered as spam.
+        :type value: integer
+        """
+        self._spam_threshold = value
+
+    def get(self):
+        """
+        Get a JSON-ready representation of this SpamThreshold.
+
+        :returns: This SpamThreshold, ready for use in a request body.
+        :rtype: integer
+        """
+        return self.spam_threshold