Package Skype4Py :: Module sms :: Class SmsMessage
[frames] | no frames]

Class SmsMessage

source code

  object --+    
           |    
utils.Cached --+
               |
              SmsMessage

Represents an SMS message.
Instance Methods
 
__repr__(self)
repr(x)
source code
 
Delete(self)
Deletes this SMS message.
source code
 
MarkAsSeen(self)
Marks this SMS message as seen.
source code
 
Send(self)
Sends this SMS message.
source code

Inherited from utils.Cached: __copy__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from utils.Cached: __new__

Properties
unicode Body
Text of this SMS message.
SmsChunkCollection Chunks
Chunks of this SMS message.
datetime.datetime Datetime
Timestamp of this SMS message as datetime object.
enums.smsFailureReason* FailureReason
Reason an SMS message failed.
int Id
Unique SMS message Id.
bool IsFailedUnseen
Tells if a failed SMS message was unseen.
int Price
SMS price.
unicode PriceCurrency
SMS price currency.
int PricePrecision
SMS price precision.
unicode PriceToText
SMS price as properly formatted text with currency.
float PriceValue
SMS price.
str ReplyToNumber
Reply-to number for this SMS message.
bool Seen
Set the read status of the SMS message.
enums.smsMessageStatus* Status
SMS message status.
tuple of str TargetNumbers
Target phone numbers.
SmsTargetCollection Targets
Target objects.
float Timestamp
Timestamp of this SMS message.
enums.smsMessageType* Type
SMS message type

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details

Body

Text of this SMS message.
Get Method:
_GetBody(self)
Set Method:
_SetBody(self, Value)
Type:
unicode

Chunks

Chunks of this SMS message. More than one if this is a multi-part message.
Get Method:
_GetChunks(self)
Type:
SmsChunkCollection

Datetime

Timestamp of this SMS message as datetime object.
Get Method:
_GetDatetime(self)
Type:
datetime.datetime

FailureReason

Reason an SMS message failed. Read this if Status == enums.smsMessageStatusFailed.
Get Method:
_GetFailureReason(self)
Type:
enums.smsFailureReason*

Id

Unique SMS message Id.
Get Method:
_GetId(self)
Type:
int

IsFailedUnseen

Tells if a failed SMS message was unseen.
Get Method:
_GetIsFailedUnseen(self)
Type:
bool

Price

SMS price. Expressed using PricePrecision. For a value expressed using PriceCurrency, use PriceValue.
Get Method:
_GetPrice(self)
Type:
int

PriceCurrency

SMS price currency.
Get Method:
_GetPriceCurrency(self)
Type:
unicode

PricePrecision

SMS price precision.
Get Method:
_GetPricePrecision(self)
Type:
int

PriceToText

SMS price as properly formatted text with currency.
Get Method:
_GetPriceToText(self)
Type:
unicode

PriceValue

SMS price. Expressed in PriceCurrency.
Get Method:
_GetPriceValue(self)
Type:
float

ReplyToNumber

Reply-to number for this SMS message.
Get Method:
_GetReplyToNumber(self)
Set Method:
_SetReplyToNumber(self, Value)
Type:
str

Seen

Set the read status of the SMS message. Accepts only True value.
Set Method:
_SetSeen(self, Value)
Type:
bool

Deprecated: Extremely unpythonic, use MarkAsSeen instead.

Status

SMS message status.
Get Method:
_GetStatus(self)
Type:
enums.smsMessageStatus*

TargetNumbers

Target phone numbers.
Get Method:
_GetTargetNumbers(self)
Set Method:
_SetTargetNumbers(self, Value)
Type:
tuple of str

Targets

Target objects.
Get Method:
_GetTargets(self)
Type:
SmsTargetCollection

Timestamp

Timestamp of this SMS message.
Get Method:
_GetTimestamp(self)
Type:
float

See Also: Datetime

Type

SMS message type
Get Method:
_GetType(self)
Type:
enums.smsMessageType*