@Test public void testGetMessagesFollowing() { mockServer.expect(requestTo("https: .andRespond(withSuccess(jsonResource("testdata/yammer-messages"), APPLICATION_JSON)); MessageInfo messageInfo = yammerTemplate.messageOperations().getMessagesFollowing(0,0,null,0); assertMessageInfo(messageInfo); }
public MessageInfo getMessagesFollowing(long olderThan, long newerThan, String threaded, int limit){ MultiValueMap<String, String> params = buildParams(olderThan, newerThan, threaded, limit); return restTemplate.getForObject(buildUri("messages/following.json", params), MessageInfo.class); }
MessageTemplate extends AbstractYammerOperations implements MessageOperations { public MessageInfo getMessagesFollowing(long olderThan, long newerThan, String threaded, int limit){ MultiValueMap<String, String> params = buildParams(olderThan, newerThan, threaded, limit); return restTemplate.getForObject(buildUri("messages/following.json", params), MessageInfo.class); } }
MessageTemplate extends AbstractYammerOperations implements MessageOperations { public MessageInfo getMessagesFollowing(long olderThan, long newerThan, String threaded, int limit){ MultiValueMap<String, String> params = buildParams(olderThan, newerThan, threaded, limit); return restTemplate.getForObject(buildUri("messages/following.json", params), MessageInfo.class); } MessageTemplate(RestTemplate restTemplate); }
MessageTemplate extends AbstractYammerOperations implements MessageOperations { public MessageInfo getMessagesFollowing(long olderThan, long newerThan, String threaded, int limit){ MultiValueMap<String, String> params = buildParams(olderThan, newerThan, threaded, limit); return restTemplate.getForObject(buildUri("messages/following.json", params), MessageInfo.class); } MessageTemplate(RestTemplate restTemplate); MessageInfo getMessages(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesFollowing(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesSent(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesPrivate(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesAboutTopic(long topicId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesInGroup(long groupId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesInThread(long threadId, long olderThan, long newerThan, int limit); MessageInfo getMessagesFromUser(long userId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesLikedByUser(long userId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesReceived(long olderThan, long newerThan, String threaded, int limit); MessageInfo postUpdate(String message); MessageInfo postUpdate(String message, YammerPostDetails details); void like(long messageId); void unlike(long messageId); void delete(long messageId); }
MessageTemplate extends AbstractYammerOperations implements MessageOperations { public MessageInfo getMessagesFollowing(long olderThan, long newerThan, String threaded, int limit){ MultiValueMap<String, String> params = buildParams(olderThan, newerThan, threaded, limit); return restTemplate.getForObject(buildUri("messages/following.json", params), MessageInfo.class); } MessageTemplate(RestTemplate restTemplate); MessageInfo getMessages(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesFollowing(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesSent(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesPrivate(long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesAboutTopic(long topicId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesInGroup(long groupId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesInThread(long threadId, long olderThan, long newerThan, int limit); MessageInfo getMessagesFromUser(long userId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesLikedByUser(long userId, long olderThan, long newerThan, String threaded, int limit); MessageInfo getMessagesReceived(long olderThan, long newerThan, String threaded, int limit); MessageInfo postUpdate(String message); MessageInfo postUpdate(String message, YammerPostDetails details); void like(long messageId); void unlike(long messageId); void delete(long messageId);  }