Esempio n. 1
0
 public void MakeCall(GSM receiver, double duration)
 {
     if (Call.IsDurationValid(duration))
     {
         if (this.SimMobileNumber != receiver.SimMobileNumber)
         {
             if (this.HasSimCard && receiver.HasSimCard)
             {
                 Call newcall = new Call(this, receiver, duration);
                 this.LastOutgoingCall       = newcall;
                 receiver.LastIncomingCall   = newcall;
                 this.OutgoingCallsDuration += duration;
             }
         }
     }
 }
Esempio n. 2
0
 public Call(GSM caller, GSM receiver, double duration)
 {
     this.Caller   = caller;
     this.Receiver = receiver;
     this.Duration = duration;
 }