Class: Skype::VoiceMail

Inherits:
AbstractObject show all
Defined in:
lib/skype/voicemail.rb

Constant Summary collapse

OBJECT_NAME =
"VOICEMAIL"

Instance Attribute Summary

Attributes included from AbstractObject::Get

#property2callback, #property2symbol

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractObject

inherited, #initialize, new, notified, #to_s

Methods included from AbstractObject::Notify

#delNotify, #notified, #notify, #setNotify

Methods included from AbstractObject::Get

#def_parser, #notice

Methods included from AbstractObject::Invokers

#invoke_alter, #invoke_echo, #invoke_get, #invoke_one, #invoke_set

Constructor Details

This class inherits a constructor from Skype::AbstractObject

Class Method Details

.create(target) ⇒ Object



5
6
7
# File 'lib/skype/voicemail.rb', line 5

def self.create target
  Skype.invoke "CALLVOICEMAIL #{target}"
end

.open(id) ⇒ Object



9
10
11
# File 'lib/skype/voicemail.rb', line 9

def self.open id
  Skype.invoke "OPEN VOICEMAIL #{id}"
end

Instance Method Details

#deleteObject



64
# File 'lib/skype/voicemail.rb', line 64

def delete() invoke_alter "DELETE" end

#downloadObject



56
# File 'lib/skype/voicemail.rb', line 56

def download() invoke_alter "DOWNLOAD" end

#get_allowed_durationObject Also known as: getAllowedDuration



41
# File 'lib/skype/voicemail.rb', line 41

def get_allowed_duration() parse :allowed_duration, invoke_get("ALLOWED_DURATION") end

#get_durationObject Also known as: getDuration



37
# File 'lib/skype/voicemail.rb', line 37

def get_duration() parse :duration, invoke_get("DURATION") end

#get_failure_reasonObject Also known as: getFailureReason



29
# File 'lib/skype/voicemail.rb', line 29

def get_failure_reason() invoke_get("FAILUREREASON") end

#get_partnerObject Also known as: getPartner



17
# File 'lib/skype/voicemail.rb', line 17

def get_partner() parse :partner, invoke_get("PARTNER_HANDLE") end

#get_partner_dispnameObject Also known as: getPartnerDispname



21
# File 'lib/skype/voicemail.rb', line 21

def get_partner_dispname() invoke_get("PARTNER_DISPNAME") end

#get_statusObject Also known as: getStatus



25
# File 'lib/skype/voicemail.rb', line 25

def get_status() invoke_get("STATUS") end

#get_timestampObject Also known as: getTimestamp



33
# File 'lib/skype/voicemail.rb', line 33

def get_timestamp() parse :timestamp, invoke_get("TIMESTAMP") end

#get_typeObject Also known as: getType



13
# File 'lib/skype/voicemail.rb', line 13

def get_type() invoke_get("TYPE") end

#start_playbackObject Also known as: startPlayback

def alter action

@@skypeApi.invoke "ALTER VOICEMAIL #{id} #{action}"

end



48
# File 'lib/skype/voicemail.rb', line 48

def start_playback() invoke_alter "STARTPLAYBACK" end

#start_recordingObject Also known as: startRecording



58
# File 'lib/skype/voicemail.rb', line 58

def start_recording() invoke_alter "STARTRECORDING" end

#stop_playbackObject Also known as: stopPlayback



51
# File 'lib/skype/voicemail.rb', line 51

def stop_playback() invoke_alter "STOPPLAYBACK" end

#stop_recordingObject Also known as: stopRecording



61
# File 'lib/skype/voicemail.rb', line 61

def stop_recording() invoke_alter "STOPRECORDING" end

#uploadObject



54
# File 'lib/skype/voicemail.rb', line 54

def upload() invoke_alter "UPLOAD" end