Contact

Contact defines the structure of the contacts used in Shawk. These contain an address, a number, and an optional name.

The real magic isn’t so much in the contact, but in how the Client uses the contact for simplifiyng receiving and sending messages.

shawk.Contact

Define the Contact representation in Shawk.

class shawk.Contact.Contact(number, carrier, name=None)[source]

Bases: object

Define the structure for contacts.

get_address()[source]

Return the email address of the Contact.

get_carrier()[source]

Return the carrier of the Contact.

get_name()[source]

Return the name of the Contact.

get_number()[source]

Return the number of the Contact.