Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 564 Bytes

guest_notifier.md

File metadata and controls

18 lines (15 loc) · 564 Bytes

Guest notifier interface - IGuestNotifier

Guest notifier interface for working with so called Guest Notifier hardware: buzzers, pagers, etc. Example implementation

public class MyGuestNotifier implements IGuestNotifier {

	MyGuestNotifierServer server = new MyGuestNotifierServer();

	@Override
	public GuestNotifierResult operation(GuestNotifierRequest request) {
		if (request instanceof GuestNotifierCallRequest) {
			return server.read(cfg, (GuestNotifierCallRequest) request);
		}
		throw new RuntimeException("Operation not supported");
	}
}