Class: InboundMMSMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/response/mms/InboundMMSMessage.rb

Instance Method Summary collapse

Constructor Details

#initializeInboundMMSMessage

Returns a new instance of InboundMMSMessage.


4
5
6
7
# File 'lib/response/mms/InboundMMSMessage.rb', line 4

def initialize
  @subject=nil
  @message=nil
end

Instance Method Details

#getMessageObject


28
29
30
# File 'lib/response/mms/InboundMMSMessage.rb', line 28

def getMessage
  @message
end

#getSubjectObject


20
21
22
# File 'lib/response/mms/InboundMMSMessage.rb', line 20

def getSubject
  @subject
end

#initializeJSON(jsondict) ⇒ Object


9
10
11
12
13
14
15
16
17
18
# File 'lib/response/mms/InboundMMSMessage.rb', line 9

def initializeJSON(jsondict)
  @subject=nil
  if (jsondict!=nil) && (jsondict.has_key?'subject') && (jsondict['subject']!=nil)
    @subject=jsondict['subject']
  end
  @message=nil
  if (jsondict!=nil) && (jsondict.has_key?'message') && (jsondict['message']!=nil)
    @message=jsondict['message']
  end
end

#setMessage(message) ⇒ Object


32
33
34
# File 'lib/response/mms/InboundMMSMessage.rb', line 32

def setMessage(message)
  @message=message
end

#setSubject(subject) ⇒ Object


24
25
26
# File 'lib/response/mms/InboundMMSMessage.rb', line 24

def setSubject(subject)
  @subject=subject
end