Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package TunniPlaanPackage2;
- import java.util.ArrayList;
- import javax.jws.WebMethod;
- import javax.jws.WebService;
- /**
- *
- * @author Martin.Paroll
- */
- @WebService
- public class OIS {
- @WebMethod
- public static ArrayList getTunniplaan(String nimi, String matrikkel) {
- ArrayList<Tund> tunniPlaan = new ArrayList<Tund>();
- Tund t1 = new Tund();
- Tund t2 = new Tund();
- t1.aineNimi = "Mata";
- t1.oppeJouNimi = "Olemas";
- t1.RuumiNr = 1;
- Tund t3 = new Tund();
- t2.aineNimi = "Keka";
- t2.oppeJouNimi = "Jaan";
- t2.RuumiNr = 2;
- t2.aineNimi = "T8pa";
- t2.oppeJouNimi = "Elmar";
- t2.RuumiNr = 2;
- tunniPlaan.add(t1);
- tunniPlaan.add(t2);
- tunniPlaan.add(t3);
- return tunniPlaan;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement