blob: 0ea0e2f53806ab475b0ab8b57d3f036e9d248f2e [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 v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* 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();
}
}