Class: InboundMessage

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

Instance Method Summary collapse

Constructor Details

#initializeInboundMessage

Returns a new instance of InboundMessage.



5
6
7
8
9
10
11
12
# File 'lib/response/mms/InboundMessage.rb', line 5

def initialize
  @dateTime=nil
  @destinationAddress=nil
  @senderAddress=nil
  @inboundMMSMessage=nil
  @messageId=nil
  @resourceURL=nil
end

Instance Method Details

#getDateTimeObject



42
43
44
# File 'lib/response/mms/InboundMessage.rb', line 42

def getDateTime
  @dateTime
end

#getDestinationAddressObject



50
51
52
# File 'lib/response/mms/InboundMessage.rb', line 50

def getDestinationAddress
  @destinationAddress
end

#getInboundMMSMessageObject



66
67
68
# File 'lib/response/mms/InboundMessage.rb', line 66

def getInboundMMSMessage
  @inboundMMSMessage
end

#getMessageIdObject



74
75
76
# File 'lib/response/mms/InboundMessage.rb', line 74

def getMessageId
  @messageId
end

#getResourceURLObject



82
83
84
# File 'lib/response/mms/InboundMessage.rb', line 82

def getResourceURL
  @resourceURL
end

#getSenderAddressObject



58
59
60
# File 'lib/response/mms/InboundMessage.rb', line 58

def getSenderAddress
  @senderAddress
end

#initializeJSON(jsondict) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/response/mms/InboundMessage.rb', line 14

def initializeJSON(jsondict)
  @dateTime=nil
  if (jsondict!=nil) && (jsondict.has_key?'dateTime') && (jsondict['dateTime']!=nil)
    @dateTime=jsondict['dateTime']
  end
  @destinationAddress=nil
  if (jsondict!=nil) && (jsondict.has_key?'destinationAddress') && (jsondict['destinationAddress']!=nil)
    @destinationAddress=jsondict['destinationAddress']
  end
  @senderAddress=nil
  if (jsondict!=nil) && (jsondict.has_key?'senderAddress') && (jsondict['senderAddress']!=nil)
    @senderAddress=jsondict['senderAddress']
  end
  @inboundMMSMessage=nil
  if (jsondict!=nil) && (jsondict.has_key?'inboundMMSMessage') && (jsondict['inboundMMSMessage']!=nil) then
    @inboundMMSMessage=InboundMMSMessage.new
    @inboundMMSMessage.initializeJSON(jsondict['inboundMMSMessage'])
  end
  @messageId=nil
  if (jsondict!=nil) && (jsondict.has_key?'messageId') && (jsondict['messageId']!=nil)
    @messageId=jsondict['messageId']
  end
  @resourceURL=nil
  if (jsondict!=nil) && (jsondict.has_key?'resourceURL') && (jsondict['resourceURL']!=nil)
    @resourceURL=jsondict['resourceURL']
  end
end

#setDateTime(dateTime) ⇒ Object



46
47
48
# File 'lib/response/mms/InboundMessage.rb', line 46

def setDateTime(dateTime)
  @dateTime=dateTime
end

#setDestinationAddress(destinationAddress) ⇒ Object



54
55
56
# File 'lib/response/mms/InboundMessage.rb', line 54

def setDestinationAddress(destinationAddress)
  @destinationAddress=destinationAddress
end

#setInboundMMSMessage(inboundMMSMessage) ⇒ Object



70
71
72
# File 'lib/response/mms/InboundMessage.rb', line 70

def setInboundMMSMessage(inboundMMSMessage)
  @inboundMMSMessage=inboundMMSMessage
end

#setMessageId(messageId) ⇒ Object



78
79
80
# File 'lib/response/mms/InboundMessage.rb', line 78

def setMessageId(messageId)
  @messageId=messageId
end

#setResourceURL(resourceURL) ⇒ Object



86
87
88
# File 'lib/response/mms/InboundMessage.rb', line 86

def setResourceURL(resourceURL)
  @resourceURL=resourceURL
end

#setSenderAddress(senderAddress) ⇒ Object



62
63
64
# File 'lib/response/mms/InboundMessage.rb', line 62

def setSenderAddress(senderAddress)
  @senderAddress=senderAddress
end