Skip to main content

No project description provided

Project description

Abstract Message

Usage:

from message_local.Message import Message

class SpecialMessage(Message):
    def __init__(self, message_content: str, message_importance: int):
        super().__init__(message_content, message_importance)  # now you got self.message_content and self.message_importance

    def send(self, recipient: str):
        print("Message sent to " + recipient)

    def was_read(self):
        return True

    def importance(self):
        return 5

    def display(self):
        print("Message displayed")

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

message-local-0.0.1.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

message_local-0.0.1-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page