blob: bb077e3854fd8b5b8fc0a120d9bc6376441cd526 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2017 Orange.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* BAREAU Cyrille <cyrille.bareau@orange.com>,
* BONNARDEL Gregory <gbonnardel.ext@orange.com>,
* BOLLE Sebastien <sebastien.bolle@orange.com>.
*******************************************************************************/
package org.eclipse.om2m.android.dashboard.cse.requests;
import org.eclipse.om2m.android.dashboard.cse.OneM2MConnector;
import org.eclipse.om2m.android.dashboard.cse.OneM2MListener;
import org.eclipse.om2m.android.dashboard.cse.OneM2MRequest;
import android.content.Context;
public class OneM2MGetIncseStatusRequest extends OneM2MRequest<Boolean> {
public OneM2MGetIncseStatusRequest(Context context, OneM2MListener listener) {
super(OneM2MReqType.INCSE_STATUS, context, listener);
}
@Override
protected Boolean getResponse(OneM2MRequestParams param) {
return OneM2MConnector.getInstance(context).isConnectedWithInCse();
}
}