blob: c005ca4e5b72b85c3a549ecf358482d3604afa40 [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 org.eclipse.om2m.android.dashboard.cse.models.SDTDevice;
import android.content.Context;
public class OneM2MGetDeviceRequest extends OneM2MRequest<SDTDevice> {
public OneM2MGetDeviceRequest(Context context, OneM2MListener listener) {
super(OneM2MReqType.DEVICE, context, listener);
}
@Override
protected SDTDevice getResponse(OneM2MRequestParams param) {
return OneM2MConnector.getInstance(context).getDevice(param.getArg1());
}
}