本文整理匯總了Java中com.restfb.types.webhook.messaging.MessagingItem.setRead方法的典型用法代碼示例。如果您正苦於以下問題:Java MessagingItem.setRead方法的具體用法?Java MessagingItem.setRead怎麽用?Java MessagingItem.setRead使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.restfb.types.webhook.messaging.MessagingItem
的用法示例。
在下文中一共展示了MessagingItem.setRead方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testOnMessageRead
import com.restfb.types.webhook.messaging.MessagingItem; //導入方法依賴的package包/類
@Test
public void testOnMessageRead() {
ReadItem read = new ReadItem();
MessagingItem messagingItem = new MessagingItem();
messagingItem.setRead(read);
WebhookObject webhookObject = createWebhookObjectWithMessagingItem(messagingItem);
spyCallbackHandler.onCallback(messenger, webhookObject);
verify(spyCallbackHandler, times(1)).onMessageRead(messenger, messagingItem);
verifyNoMoreInteractions(spyCallbackHandler);
}
示例2: testOnStandbyMessageRead
import com.restfb.types.webhook.messaging.MessagingItem; //導入方法依賴的package包/類
@Test
public void testOnStandbyMessageRead() {
ReadItem read = new ReadItem();
MessagingItem standbyItem = new MessagingItem();
standbyItem.setRead(read);
WebhookObject webhookObject = createWebhookObjectWithStandbyItem(standbyItem);
spyCallbackHandler.onCallback(messenger, webhookObject);
verify(spyCallbackHandler, times(1)).onStandbyMessageRead(messenger, standbyItem);
verifyNoMoreInteractions(spyCallbackHandler);
}