public override void RecordCall(TypeOfCall callType, uint nMinutes) { switch (callType) { case TypeOfCall.CallToLandline: balance += (0.02M * nMinutes); break; case TypeOfCall.CallToCellPhone: uint highCostMinutes, lowCostMinutes; uint highCostMinutesToGo = (highCostMinutesUsed < 60) ? 60 - highCostMinutesUsed : 0; if (nMinutes > highCostMinutesToGo) { highCostMinutes = highCostMinutesToGo; lowCostMinutes = nMinutes - highCostMinutes; } else { highCostMinutes = nMinutes; lowCostMinutes = 0; } highCostMinutesUsed += highCostMinutes; balance += (0.50M * highCostMinutes + 0.20M * lowCostMinutes); break; default: break; } }
public RecordOfReport(TypeOfCall typeOfCall, int number, DateTime date, DateTime time, int amount) { TypeOfCall = typeOfCall; Number = number; Date = date; Time = time; Amount = amount; }
public ClockedRemoteCall(uint Tick, TypeOfCall Type, WeakRef Node, String Name, MDRemoteMode Mode, int SenderPeerId, params object[] Parameters) { this.Tick = Tick; this.Type = Type; this.Node = Node; this.Name = Name; this.Mode = Mode; this.Parameters = Parameters; this.SenderPeerId = SenderPeerId; }
public virtual void RecordCall(TypeOfCall callType, uint nMinutes) { switch (callType) { case TypeOfCall.CallToLandline: balance += (0.02M * nMinutes); break; case TypeOfCall.CallToCellPhone: balance += (0.30M * nMinutes); break; default: break; } }
public override void RecordCall(TypeOfCall callType, uint nMinutes) { switch (callType) { case TypeOfCall.CallToLandline: balance += (0.02M * nMinutes); break; case TypeOfCall.CallToCellPhone: balance += (0.30M * nMinutes); break; default: break; } }
public abstract void RecordCall(TypeOfCall callType, uint nMinutes);
public override void RecordCall(TypeOfCall callType, uint nMinutes) { switch (callType) { case TypeOfCall.CallToLandline: balance += (0.02M * nMinutes); break; case TypeOfCall.CallToCellPhone: uint highCostMinutes, lowCostMinutes; uint highCostMinutesToGo = (highCostMinutesUsed < 60) ? 60 - highCostMinutesUsed : 0; if (nMinutes > highCostMinutesToGo) { highCostMinutes = highCostMinutesToGo; lowCostMinutes = nMinutes - highCostMinutes; } else { highCostMinutes = nMinutes; lowCostMinutes = 0; } highCostMinutesUsed += highCostMinutes; balance += (0.50M * highCostMinutes + 0.20M * lowCostMinutes); break; default: break; } }
public abstract void RecordCall(TypeOfCall callType, uint nMinutes);