@SuppressWarnings("unchecked") public NSDictionary<NSUUID, NSError> getFailedAccessories() { if (getCachedUserInfo().has(HMErrorUserInfoKey.FailedAccessories)) { NSDictionary<NSUUID, NSError> val = (NSDictionary<NSUUID, NSError>) getCachedUserInfo().get(HMErrorUserInfoKey.FailedAccessories); return val; } return null; } /*<methods>*/
@Override public HMErrorCode getErrorCode() { HMErrorCode code = null; try { code = HMErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; }
private NSErrorUserInfo getCachedUserInfo() { if (userInfo == null) { userInfo = getUserInfo(); } return userInfo; }
@SuppressWarnings("unchecked") public NSDictionary<NSUUID, NSError> getFailedAccessories() { if (getCachedUserInfo().has(HMErrorUserInfoKey.FailedAccessories)) { NSDictionary<NSUUID, NSError> val = (NSDictionary<NSUUID, NSError>) getCachedUserInfo().get(HMErrorUserInfoKey.FailedAccessories); return val; } return null; } /*<methods>*/
private NSErrorUserInfo getCachedUserInfo() { if (userInfo == null) { userInfo = getUserInfo(); } return userInfo; }
@Override public HMErrorCode getErrorCode() { HMErrorCode code = null; try { code = HMErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; }
@SuppressWarnings("unchecked") public NSDictionary<NSUUID, NSError> getFailedAccessories() { if (getCachedUserInfo().has(HMErrorUserInfoKey.FailedAccessories)) { NSDictionary<NSUUID, NSError> val = (NSDictionary<NSUUID, NSError>) getCachedUserInfo().get(HMErrorUserInfoKey.FailedAccessories); return val; } return null; } /*<methods>*/
private NSErrorUserInfo getCachedUserInfo() { if (userInfo == null) { userInfo = getUserInfo(); } return userInfo; }
@Override public HMErrorCode getErrorCode() { HMErrorCode code = null; try { code = HMErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; }