/** * Request to write a <b> Date Single-Instance Resource</b> using the given content format (TEXT, TLV, JSON). * * @exception InvalidRequestException if bad @{link ContentFormat} format was used. */ public WriteRequest(ContentFormat contentFormat, int objectId, int objectInstanceId, int resourceId, Date value) throws InvalidRequestException { this(Mode.REPLACE, contentFormat, new LwM2mPath(objectId, objectInstanceId, resourceId), LwM2mSingleResource.newDateResource(resourceId, value)); }
public static ReadResponse success(int resourceId, Date value) { return new ReadResponse(ResponseCode.CONTENT, LwM2mSingleResource.newDateResource(resourceId, value), null); }
createDefaultFloatValue(objectModel, resourceModel)); case TIME: return LwM2mSingleResource.newDateResource(resourceModel.id, createDefaultDateValue(objectModel, resourceModel)); case OPAQUE: