本文整理汇总了Java中com.uphyca.idobata.event.RoomTouchedEvent类的典型用法代码示例。如果您正苦于以下问题:Java RoomTouchedEvent类的具体用法?Java RoomTouchedEvent怎么用?Java RoomTouchedEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RoomTouchedEvent类属于com.uphyca.idobata.event包,在下文中一共展示了RoomTouchedEvent类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: subscribeRoomTouched
import com.uphyca.idobata.event.RoomTouchedEvent; //导入依赖的package包/类
@Test
public void subscribeRoomTouched() throws Exception {
final String eventName = "room_touched";
IdobataStream.Listener<RoomTouchedEvent> listener = mock(IdobataStream.Listener.class);
underTest.subscribeRoomTouched(listener);
underTest.onEvent(channelName, eventName, "{}");
verify(presenceChannel).bind(eq(eventName), any(PresenceChannelEventListener.class));
verify(listener).onEvent(any(RoomTouchedEvent.class));
}
示例2: onRoomTouchedEvent
import com.uphyca.idobata.event.RoomTouchedEvent; //导入依赖的package包/类
private void onRoomTouchedEvent(RoomTouchedEvent event) {
Log.i("Idobata", "roomTouched: " + event);
}
示例3: onEvent
import com.uphyca.idobata.event.RoomTouchedEvent; //导入依赖的package包/类
@Override
public void onEvent(RoomTouchedEvent event) {
onRoomTouchedEvent(event);
}
示例4: onRoomTouchedEvent
import com.uphyca.idobata.event.RoomTouchedEvent; //导入依赖的package包/类
private void onRoomTouchedEvent(RoomTouchedEvent event) {
//no-op.
}
示例5: subscribeRoomTouched
import com.uphyca.idobata.event.RoomTouchedEvent; //导入依赖的package包/类
/**
* event: room_touched
*/
IdobataStream subscribeRoomTouched(Listener<RoomTouchedEvent> listener);