Class: InboundSMSMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/response/sms/InboundSMSMessage.rb

Instance Method Summary collapse

Constructor Details

#initializeInboundSMSMessage

Returns a new instance of InboundSMSMessage.



4
5
6
7
8
9
10
11
# File 'lib/response/sms/InboundSMSMessage.rb', line 4

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

Instance Method Details

#getDateTimeObject



40
41
42
# File 'lib/response/sms/InboundSMSMessage.rb', line 40

def getDateTime
  @dateTime
end

#getDestinationAddressObject



48
49
50
# File 'lib/response/sms/InboundSMSMessage.rb', line 48

def getDestinationAddress
  @destinationAddress
end

#getMessageObject



72
73
74
# File 'lib/response/sms/InboundSMSMessage.rb', line 72

def getMessage
  @message
end

#getMessageIdObject



64
65
66
# File 'lib/response/sms/InboundSMSMessage.rb', line 64

def getMessageId
  @messageId
end

#getResourceURLObject



80
81
82
# File 'lib/response/sms/InboundSMSMessage.rb', line 80

def getResourceURL
  @resourceURL
end

#getSenderAddressObject



56
57
58
# File 'lib/response/sms/InboundSMSMessage.rb', line 56

def getSenderAddress
  @senderAddress
end

#initializeJSON(jsondict) ⇒ Object



13
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
# File 'lib/response/sms/InboundSMSMessage.rb', line 13

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
  @messageId=nil
  if (jsondict!=nil) && (jsondict.has_key?'messageId') && (jsondict['messageId']!=nil)
    @messageId=jsondict['messageId']
  end
  @message=nil
  if (jsondict!=nil) && (jsondict.has_key?'message') && (jsondict['message']!=nil)
    @message=jsondict['message']
  end
  @resourceURL=nil
  if (jsondict!=nil) && (jsondict.has_key?'resourceURL') && (jsondict['resourceURL']!=nil)
    @resourceURL=jsondict['resourceURL']
  end
end

#setDateTime(dateTime) ⇒ Object



44
45
46
# File 'lib/response/sms/InboundSMSMessage.rb', line 44

def setDateTime(dateTime)
  @dateTime=dateTime
end

#setDestinationAddress(destinationAddress) ⇒ Object



52
53
54
# File 'lib/response/sms/InboundSMSMessage.rb', line 52

def setDestinationAddress(destinationAddress)
  @destinationAddress=destinationAddress
end

#setMessage(message) ⇒ Object



76
77
78
# File 'lib/response/sms/InboundSMSMessage.rb', line 76

def setMessage(message)
  @message=message
end

#setMessageId(messageId) ⇒ Object



68
69
70
# File 'lib/response/sms/InboundSMSMessage.rb', line 68

def setMessageId(messageId)
  @messageId=messageId
end

#setResourceURL(resourceURL) ⇒ Object



84
85
86
# File 'lib/response/sms/InboundSMSMessage.rb', line 84

def setResourceURL(resourceURL)
  @resourceURL=resourceURL
end

#setSenderAddress(senderAddress) ⇒ Object



60
61
62
# File 'lib/response/sms/InboundSMSMessage.rb', line 60

def setSenderAddress(senderAddress)
  @senderAddress=senderAddress
end