| | |
| | | private String token; |
| | | private String subAccessToken; |
| | | private IAddCamera iAddCamera; |
| | | private String productBrandldentity; |
| | | |
| | | public Activity getActivity() { |
| | | return activity; |
| | |
| | | } |
| | | public void openActivity() { |
| | | try { |
| | | // getSubAccountToken("827a98c98da7469b8bc19bb6a3c7651906"); |
| | | activity.startActivity(new Intent(activity, com.lechange.demo.ui.DeviceListActivity.class)); |
| | | } catch (Throwable e) { |
| | | Toast.makeText(activity, e.getMessage(), Toast.LENGTH_SHORT).show(); |
| | |
| | | public void setHomeId(String homeId) { |
| | | this.homeId = homeId; |
| | | LCDeviceEngine.newInstance().setHomeId(homeId); |
| | | } |
| | | |
| | | public String getProductBrandldentity() { return productBrandldentity;} |
| | | |
| | | public void setProductBrandldentity(String productBrandldentity){ |
| | | this.productBrandldentity = productBrandldentity; |
| | | LCDeviceEngine.newInstance().setProductBrandldentity(productBrandldentity); |
| | | |
| | | } |
| | | |
| | | public String getToken() { |