aboutsummaryrefslogtreecommitdiff
path: root/Account.py
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-05-22 15:19:20 -0500
committerChristian Cleberg <hello@cleberg.net>2023-05-22 15:19:20 -0500
commit0bef69a049f4bace9b06cb4beb3b0505dd7b7a44 (patch)
treec7895a2ded7c774fcac1584940e43690fde4ff65 /Account.py
downloadyoshi-cli-0bef69a049f4bace9b06cb4beb3b0505dd7b7a44.tar.gz
yoshi-cli-0bef69a049f4bace9b06cb4beb3b0505dd7b7a44.tar.bz2
yoshi-cli-0bef69a049f4bace9b06cb4beb3b0505dd7b7a44.zip
initial commit
Diffstat (limited to 'Account.py')
-rw-r--r--Account.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/Account.py b/Account.py
new file mode 100644
index 0000000..11d4180
--- /dev/null
+++ b/Account.py
@@ -0,0 +1,26 @@
+import database
+
+
+class Account:
+ def __init__(self, uuid: str, application: str, username: str,
+ password: str, url: str) -> None:
+ self.uuid = uuid
+ self.application = application
+ self.username = username
+ self.password = password
+ self.url = url
+
+ def display_account(self) -> None:
+ print('ID:', self.uuid)
+ print('Application:', self.application)
+ print('Username:', self.username)
+ print('Password:', self.password)
+ print('URL:', self.url)
+
+ def save_account(self) -> None:
+ database.create_account(
+ self.uuid, self.application, self.username, self.password, self.url)
+
+ def delete_account(self) -> bool:
+ database.delete_account(self.uuid)
+ return True