Exemple #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;
             }
         }
     }
 }
Exemple #2
0
 public Call(GSM caller, GSM receiver, double duration)
 {
     this.Caller   = caller;
     this.Receiver = receiver;
     this.Duration = duration;
 }