2024-08-30 18:47:55 +00:00
|
|
|
from enum import IntEnum
|
2022-05-14 09:43:02 +00:00
|
|
|
from typing import TypedDict
|
|
|
|
|
2024-08-30 18:47:55 +00:00
|
|
|
class ActivityType(IntEnum):
|
|
|
|
LISTENING = 2
|
|
|
|
WATCHING = 3
|
|
|
|
|
2024-08-31 10:48:44 +00:00
|
|
|
class ActivityAssets(TypedDict, total = False):
|
2022-05-14 09:43:02 +00:00
|
|
|
large_text: str
|
|
|
|
large_image: str
|
|
|
|
small_text: str
|
|
|
|
small_image: str
|
|
|
|
|
|
|
|
class ActivityTimestamps(TypedDict, total = False):
|
|
|
|
start: int
|
|
|
|
end: int
|
|
|
|
|
2022-08-25 20:37:50 +00:00
|
|
|
class ActivityButton(TypedDict):
|
|
|
|
label: str
|
|
|
|
url: str
|
|
|
|
|
2022-05-14 09:43:02 +00:00
|
|
|
class Activity(TypedDict, total = False):
|
2024-08-30 18:47:55 +00:00
|
|
|
type: ActivityType
|
2022-05-14 09:43:02 +00:00
|
|
|
details: str
|
|
|
|
state: str
|
|
|
|
assets: ActivityAssets
|
|
|
|
timestamps: ActivityTimestamps
|
2022-08-25 20:37:50 +00:00
|
|
|
buttons: list[ActivityButton]
|