def get_events
      begin
        if subscribed?
          resp = ews.get_events(@subscription_id, @watermark)
          rmsg = resp.response_messages[0]
          @watermark = rmsg.new_watermark
          # @todo if parms[:more_events] # get more events
          rmsg.events.collect{|ev|
            type = ev.keys.first
            class_by_name(type).new(ews, ev[type])
          }
        else
          raise EwsSubscriptionError, "Folder <#{self.display_name}> not subscribed to. Issue a Folder#subscribe before checking events."
        end
      rescue EwsSubscriptionTimeout => e
        @subscription_id, @watermark = nil, nil
        raise e
      end
    end
def get_events
      begin
        if subscribed?
          resp = ews.get_events(@subscription_id, @watermark)
          rmsg = resp.response_messages[0]
          @watermark = rmsg.new_watermark
          
          rmsg.events.collect{|ev|
            type = ev.keys.first
            class_by_name(type).new(ews, ev[type])
          }
        else
          raise EwsSubscriptionError, "Folder <
        end
      rescue EwsSubscriptionTimeout => e
        @subscription_id, @watermark = nil, nil
        raise e
      end
    end
def get_events begin if subscribed? resp = ews . get_events ( @subscription_id , @watermark ) rmsg = resp . response_messages [ 0 ] @watermark = rmsg . new_watermark # @todo if parms[:more_events] # get more events rmsg . events . collect { | ev | type = ev . keys . first class_by_name ( type ) . new ( ews , ev [ type ] ) } else raise EwsSubscriptionError , "Folder <#{self.display_name}> not subscribed to. Issue a Folder#subscribe before checking events." end rescue EwsSubscriptionTimeout => e @subscription_id , @watermark = nil , nil raise e end end
Checks a subscribed folder for events
 @return [Array] An array of Event items
Checks a subscribed folder for events