@Test public void testSend() throws XRoadServiceConsumptionException { Sms sms = new Sms(); sms.setIsikukood("37801113714"); sms.setTeenusId("169"); sms.setSaatjaNumber("0"); sms.setSisu("XTee test message"); mteenusXTeeServiceImpl.send(sms); }
public TeavitusVastus send(Sms sms) throws XRoadServiceConsumptionException { TeavitusSisu sisu = TeavitusSisu.Factory.newInstance(); sisu.setTeenusId(sms.getTeenusId()); sisu.setIsikukood(sms.getIsikukood()); sisu.setSaatjaNumber(sms.getSaatjaNumber()); sisu.setSisu(sms.getSisu()); sisu.setKinnitus(sms.isKinnitus()); sisu.setSaadaWap(sms.isSaadaWap()); return mteenusXRoadDatabase.smSteavitusV1(sisu); }
MteenusXTeeServiceImpl extends XRoadDatabaseService implements MteenusXTeeService { public TeavitusVastus send(Sms sms) throws XRoadServiceConsumptionException { TeavitusSisu sisu = TeavitusSisu.Factory.newInstance(); sisu.setTeenusId(sms.getTeenusId()); sisu.setIsikukood(sms.getIsikukood()); sisu.setSaatjaNumber(sms.getSaatjaNumber()); sisu.setSisu(sms.getSisu()); sisu.setKinnitus(sms.isKinnitus()); sisu.setSaadaWap(sms.isSaadaWap()); return mteenusXRoadDatabase.smSteavitusV1(sisu); } }
MteenusXTeeServiceImpl extends XRoadDatabaseService implements MteenusXTeeService { public TeavitusVastus send(Sms sms) throws XRoadServiceConsumptionException { TeavitusSisu sisu = TeavitusSisu.Factory.newInstance(); sisu.setTeenusId(sms.getTeenusId()); sisu.setIsikukood(sms.getIsikukood()); sisu.setSaatjaNumber(sms.getSaatjaNumber()); sisu.setSisu(sms.getSisu()); sisu.setKinnitus(sms.isKinnitus()); sisu.setSaadaWap(sms.isSaadaWap()); return mteenusXRoadDatabase.smSteavitusV1(sisu); }  }
MteenusXTeeServiceImpl extends XRoadDatabaseService implements MteenusXTeeService { public TeavitusVastus send(Sms sms) throws XRoadServiceConsumptionException { TeavitusSisu sisu = TeavitusSisu.Factory.newInstance(); sisu.setTeenusId(sms.getTeenusId()); sisu.setIsikukood(sms.getIsikukood()); sisu.setSaatjaNumber(sms.getSaatjaNumber()); sisu.setSisu(sms.getSisu()); sisu.setKinnitus(sms.isKinnitus()); sisu.setSaadaWap(sms.isSaadaWap()); return mteenusXRoadDatabase.smSteavitusV1(sisu); }  TeavitusVastus send(Sms sms); void setMteenusXRoadDatabase(MteenusXRoadDatabase mteenusXRoadDatabase); }
MteenusXTeeServiceImpl extends XRoadDatabaseService implements MteenusXTeeService { public TeavitusVastus send(Sms sms) throws XRoadServiceConsumptionException { TeavitusSisu sisu = TeavitusSisu.Factory.newInstance(); sisu.setTeenusId(sms.getTeenusId()); sisu.setIsikukood(sms.getIsikukood()); sisu.setSaatjaNumber(sms.getSaatjaNumber()); sisu.setSisu(sms.getSisu()); sisu.setKinnitus(sms.isKinnitus()); sisu.setSaadaWap(sms.isSaadaWap()); return mteenusXRoadDatabase.smSteavitusV1(sisu); }  TeavitusVastus send(Sms sms); void setMteenusXRoadDatabase(MteenusXRoadDatabase mteenusXRoadDatabase);  }