2024-07-06 18:01:47 +00:00
|
|
|
class Vendor:
|
|
|
|
"""
|
2024-07-07 14:26:54 +00:00
|
|
|
Represents a Vendor with SDK, OEM, version, and name attributes.
|
2024-07-06 18:01:47 +00:00
|
|
|
"""
|
|
|
|
|
2024-07-07 14:26:54 +00:00
|
|
|
def __init__(self, sdk: int, oem: int, version: str, name: str):
|
2024-07-06 18:01:47 +00:00
|
|
|
"""
|
|
|
|
Initializes a Vendor instance.
|
|
|
|
|
|
|
|
Args:
|
2024-07-07 14:26:54 +00:00
|
|
|
sdk (int): Minimum SDK version required.
|
|
|
|
oem (int): OEM identifier.
|
|
|
|
version (str): Version of the vendor.
|
|
|
|
name (str): Name of the vendor.
|
2024-07-06 18:01:47 +00:00
|
|
|
"""
|
2024-07-07 14:26:54 +00:00
|
|
|
self.sdk = sdk
|
2024-07-06 18:01:47 +00:00
|
|
|
self.oem = oem
|
|
|
|
self.version = version
|
|
|
|
self.name = name
|
|
|
|
|
|
|
|
def __repr__(self) -> str:
|
|
|
|
"""
|
|
|
|
Returns a string representation of the Vendor instance.
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
str: String representation of the Vendor instance.
|
|
|
|
"""
|
|
|
|
return '{name}({items})'.format(
|
|
|
|
name=self.__class__.__name__,
|
|
|
|
items=', '.join([f'{k}={repr(v)}' for k, v in self.__dict__.items()])
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ('Vendor',)
|