-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a37d5cc
commit 0a8303d
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
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,44 @@ | ||
class systemInfo: | ||
def __init__(self, version, codename, branch, build): | ||
self.version = version | ||
self.codename = codename | ||
self.branch = branch | ||
self.build = build | ||
|
||
|
||
class platforms: | ||
def __init__(self, operating_system, version, kernel): | ||
self.operating_system = operating_system | ||
self.version = version | ||
self.kernel = kernel | ||
|
||
|
||
branches = [ | ||
"Alpha", | ||
"Dev", | ||
"Beta", | ||
"Release Candidate", | ||
"Release Preview", | ||
"Release" | ||
] | ||
|
||
lunaChatInfo = { | ||
"Version": systemInfo("1.0", "Andromeda", f"{branches[0]}", "2420"), | ||
"releaseDate": None, | ||
"Platforms": [ | ||
platforms("Android", "15.0", "Linux"), | ||
platforms("iOS", "17.5", "darwin"), | ||
platforms("Windows", "11", "NT"), | ||
platforms("macOS", "14.5", "darwin") | ||
] | ||
} | ||
|
||
|
||
def getLunaChatInfo(selection): | ||
getInfo = lunaChatInfo.get(selection) | ||
if isinstance(getInfo, list): | ||
return [list(vars(item).values()) for item in getInfo] | ||
elif getInfo is not None: | ||
return list(vars(getInfo).values()) | ||
else: | ||
return getInfo |