Package phonetalks.entities.calls

Examples of phonetalks.entities.calls.PhoneCall


        BinaryFileIndexSaver saver = new BinaryFileIndexSaver("out.bin", "writehere.bin");

        CardIndex index2 = saver.readIndex();
       
        PhoneCall call1 = new PhoneCall("777", 1, new GregorianCalendar(1999, 1, 1));
        PhoneCall call2 = new PhoneCall("142", 2, new GregorianCalendar(2011, 1, 1));
        PhoneCall call3 = new PhoneCall("777", 3, new GregorianCalendar(4555, 1, 1));
       
        index2.addCall("3300052", call3);
        index2.addCall("7555909", call2);
        index2.addCall("3494090", call1);
       
View Full Code Here


    public boolean removeCall(PhoneCall call) {
        if (call == null) {
            return false;
        }
        PhoneCall t = poll();
        if (t == null) {
            return false;
        }
        setTotalTime(getTotalTime() - t.getCallDuration());
        return true;
    }
View Full Code Here

    }

    public void addCall() {
        try {
            PhoneCall temp = new PhoneCall(numberToArea.getText(), Integer.valueOf(durationArea.getText()));

            base.addCall(numberFromArea.getText(), temp);
            printIndex();
            printInfo("Call added");
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of phonetalks.entities.calls.PhoneCall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.