mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
32 lines
669 B
Python
32 lines
669 B
Python
|
|
# Released under the MIT License. See LICENSE for details.
|
||
|
|
#
|
||
|
|
"""Functionality related to cloud based assets."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from enum import Enum
|
||
|
|
from typing import TYPE_CHECKING
|
||
|
|
|
||
|
|
if TYPE_CHECKING:
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
class LoginType(Enum):
|
||
|
|
"""Types of logins available."""
|
||
|
|
|
||
|
|
# Email/password
|
||
|
|
EMAIL = 'email'
|
||
|
|
|
||
|
|
# Google Play Game Services
|
||
|
|
GPGS = 'gpgs'
|
||
|
|
|
||
|
|
@property
|
||
|
|
def displayname(self) -> str:
|
||
|
|
"""Human readable name for this value."""
|
||
|
|
cls = type(self)
|
||
|
|
match self:
|
||
|
|
case cls.EMAIL:
|
||
|
|
return 'Email/Password'
|
||
|
|
case cls.GPGS:
|
||
|
|
return 'Google Play Games'
|