sendData method

void sendData(
  1. List<String>? rxCodes,
  2. List<String>? dxCodes,
  3. List<String>? editorialTags,
  4. Map<String, String>? event,
)

Implementation

void sendData(List<String>? rxCodes, List<String>? dxCodes,
    List<String>? editorialTags, Map<String, String>? event){
  try{
    if(collectDataStatus){
      if (rxCodes == null || rxCodes.isEmpty) {
//            SharedData.getInstance().sendDataCollection(mAppContext, rxCodes, null, null, null);
        rxCodes = <String>[];
      }
      if (dxCodes == null || dxCodes.isEmpty) {
//            SharedData.getInstance().sendDataCollection(mAppContext, null, dxCodes, null, null);
        dxCodes = <String>[];
      }
      if (editorialTags == null || editorialTags.isEmpty) {
//            SharedData.getInstance().sendDataCollection(mAppContext, null, null, editorial_TAGs, null);
        editorialTags = <String>[];
      }
      if (event == null || event.isEmpty) {
//            SharedData.getInstance().sendDataCollection(mAppContext, null, null, null, event);
        event = {};
      }
      AdLoaderRepo().sendDataCollection(rxCodes, dxCodes, editorialTags, event);
    }
  }catch(error){
    Log(tag).i(error.toString());
  }
}