setData method

void setData(
String type,
String data
)