public short getZoneState(IEndPointRequestContext context) throws ApplianceException, ServiceClusterException { if (context != null) { Short objectResult = null; objectResult = ((Short) getValidCachedAttributeObject(0, context.getMaxAgeForAttributeValues())); if (objectResult != null) { return objectResult.shortValue(); } } IZclFrame zclFrame = readAttribute(0, context); short v = ZclDataTypeEnum8.zclParse(zclFrame); setCachedAttributeObject(0, new Short(v)); return v; }
public static void zclSerialize(IZclFrame zclFrame, GetUsertypeResponse r) throws ZclValidationException { ZclDataTypeUI16.zclSerialize(zclFrame, r.UserID); ZclDataTypeEnum8.zclSerialize(zclFrame, r.UserType); }
public static int zclSize(GetUsertypeResponse r) throws ZclValidationException { int size = 0; size += ZclDataTypeUI16.zclSize(r.UserID); size += ZclDataTypeEnum8.zclSize(r.UserType); return size; }
public static GetUsertypeResponse zclParse(IZclFrame zclFrame) throws ZclValidationException { GetUsertypeResponse r = new GetUsertypeResponse(); r.UserID = ZclDataTypeUI16.zclParse(zclFrame); r.UserType = ZclDataTypeEnum8.zclParse(zclFrame); return r; }