Back to project page android-sdk.
The source code is released under:
MIT License
If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.relayr.model; /*from ww w . ja v a2 s .c o m*/ import java.io.Serializable; public class CreateWunderBar implements Serializable { public final Transmitter masterModule; public final Device gyroscope; public final Device light; public final Device microphone; public final Device thermometer; public final Device infrared; public final Device bridge; public CreateWunderBar(Transmitter masterModule, Device gyroscope, Device light, Device microphone, Device thermometer, Device infrared, Device bridge) { this.masterModule = masterModule; this.gyroscope = gyroscope; this.light = light; this.microphone = microphone; this.thermometer = thermometer; this.infrared = infrared; this.bridge = bridge; } public WunderBar toWunderBar() { return new WunderBar(masterModule, toTransmitterDevice(gyroscope), toTransmitterDevice(light), toTransmitterDevice(microphone), toTransmitterDevice(thermometer), toTransmitterDevice(infrared), toTransmitterDevice(bridge)); } private TransmitterDevice toTransmitterDevice(Device device) { return new TransmitterDevice(device.id, device.getSecret(), device.getOwner(), device.getName(), device.getModel().getId()); } }