Search in sources :

Example 1 with DevicePinData

use of com.zype.android.webapi.model.linking.DevicePinData in project zype-android by zype.

the class LoginActivity method handleDevicePin.

@Subscribe
public void handleDevicePin(DevicePinEvent event) {
    DevicePinData data = event.getEventData().getModelData().data;
    pin = data.pin;
    if (data.linked) {
        getAccessTokenWithPin();
    } else {
        bindViews();
    }
}
Also used : DevicePinData(com.zype.android.webapi.model.linking.DevicePinData) Subscribe(com.squareup.otto.Subscribe)

Aggregations

Subscribe (com.squareup.otto.Subscribe)1 DevicePinData (com.zype.android.webapi.model.linking.DevicePinData)1