Add device list method and chgange getDevice by Id method return type to device