Class YammerConfiguration

    • Constructor Detail

      • YammerConfiguration

        public YammerConfiguration()
    • Method Detail

      • getConsumerKey

        public String getConsumerKey()
      • setConsumerKey

        public void setConsumerKey​(String consumerKey)
        The consumer key
      • getConsumerSecret

        public String getConsumerSecret()
      • setConsumerSecret

        public void setConsumerSecret​(String consumerSecret)
        The consumer secret
      • getDelay

        public long getDelay()
      • setDelay

        public void setDelay​(long delay)
        Delay between polling in millis
      • getAccessToken

        public String getAccessToken()
      • setAccessToken

        public void setAccessToken​(String accessToken)
        The access token
      • setFunction

        public void setFunction​(YammerFunctionType function)
        The function to use
      • isUseJson

        public boolean isUseJson()
      • setUseJson

        public void setUseJson​(boolean useJson)
        Set to true if you want to use raw JSON rather than converting to POJOs.
      • getLimit

        public int getLimit()
      • setLimit

        public void setLimit​(int limit)
        Return only the specified number of messages. Works for threaded set to true and threaded set to extended.
      • getOlderThan

        public long getOlderThan()
      • setOlderThan

        public void setOlderThan​(long olderThan)
        Returns messages older than the message ID specified as a numeric string. This is useful for paginating messages. For example, if you're currently viewing 20 messages and the oldest is number 2912, you could append olderThan equals to 2912 to your request to get the 20 messages prior to those you're seeing.
      • getNewerThan

        public long getNewerThan()
      • setNewerThan

        public void setNewerThan​(long newerThan)
        Returns messages newer than the message ID specified as a numeric string. This should be used when polling for new messages. If you're looking at messages, and the most recent message returned is 3516, you can make a request with the parameter newerThan equals to 3516 to ensure that you do not get duplicate copies of messages already on your page.
      • getThreaded

        public String getThreaded()
      • setThreaded

        public void setThreaded​(String threaded)
        threaded equals to true will only return the first message in each thread. This parameter is intended for apps which display message threads collapsed. threaded equals to extended will return the thread starter messages in order of most recently active as well as the two most recent messages, as they are viewed in the default view on the Yammer web interface.
      • getUserId

        public String getUserId()
      • setUserId

        public void setUserId​(String userId)
        The user id
      • setRequestor

        public void setRequestor​(ApiRequestor requestor)
        To use a specific requester to communicate with Yammer.