getItem method

RxBool getItem(
  1. String item,
  2. String type
)

Implementation

RxBool getItem(String item, String type) {
  if (item == mobile) {
    switch (type) {
      case Constants.photo:
        return _autoDownloadMobilePhoto;
      case Constants.audio:
        return _autoDownloadMobileAudio;
      case Constants.video:
        return _autoDownloadMobileVideo;
      case Constants.document:
        return _autoDownloadMobileDocument;
    }
  } else if (item == wifi) {
    switch (type) {
      case Constants.photo:
        return _autoDownloadWifiPhoto;
      case Constants.audio:
        return _autoDownloadWifiAudio;
      case Constants.video:
        return _autoDownloadWifiVideo;
      case Constants.document:
        return _autoDownloadWifiDocument;
    }
  }
  return false.obs;
}