class InboundMessageList
Public Class Methods
new()
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 5 def initialize @inboundMessage=nil @numberOfMessagesInThisBatch=0 @resourceURL=nil @totalNumberOfPendingMessages=0 end
Public Instance Methods
getInboundMessage()
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 42 def getInboundMessage @inboundMessage end
getNumberOfMessagesInThisBatch()
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 50 def getNumberOfMessagesInThisBatch @numberOfMessagesInThisBatch end
getResourceURL()
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 58 def getResourceURL @resourceURL end
getTotalNumberOfPendingMessages()
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 66 def getTotalNumberOfPendingMessages @totalNumberOfPendingMessages end
initializeJSON(jsondict)
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 12 def initializeJSON(jsondict) @inboundMessage=nil if (jsondict!=nil) && (jsondict.has_key?'inboundMessage') && (jsondict['inboundMessage']!=nil) @inboundMessage=Array.new() fieldValue=jsondict['inboundMessage'] if fieldValue.kind_of?Array for item in fieldValue ai=@inboundMessage.length @inboundMessage[ai]=InboundMMSMessage.new() @inboundMessage[ai].initializeJSON(item) end else @inboundMessage[0]=InboundMMSMessage.new() @inboundMessage[0].initializeJSON(fieldValue) end end @numberOfMessagesInThisBatch=0 if (jsondict!=nil) && (jsondict.has_key?'numberOfMessagesInThisBatch') && (jsondict['numberOfMessagesInThisBatch']!=nil) @numberOfMessagesInThisBatch=jsondict['numberOfMessagesInThisBatch'].to_i end @resourceURL=nil if (jsondict!=nil) && (jsondict.has_key?'resourceURL') && (jsondict['resourceURL']!=nil) @resourceURL=jsondict['resourceURL'] end @totalNumberOfPendingMessages=0 if (jsondict!=nil) && (jsondict.has_key?'totalNumberOfPendingMessages') && (jsondict['totalNumberOfPendingMessages']!=nil) @totalNumberOfPendingMessages=jsondict['totalNumberOfPendingMessages'].to_i end end
setInboundMessage(inboundMessage)
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 46 def setInboundMessage(inboundMessage) @inboundMessage=inboundMessage end
setNumberOfMessagesInThisBatch(numberOfMessagesInThisBatch)
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 54 def setNumberOfMessagesInThisBatch(numberOfMessagesInThisBatch) @numberOfMessagesInThisBatch=numberOfMessagesInThisBatch end
setResourceURL(resourceURL)
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 62 def setResourceURL(resourceURL) @resourceURL=resourceURL end
setTotalNumberOfPendingMessages(totalNumberOfPendingMessages)
click to toggle source
# File lib/response/mms/InboundMessageList.rb, line 70 def setTotalNumberOfPendingMessages(totalNumberOfPendingMessages) @totalNumberOfPendingMessages=totalNumberOfPendingMessages end