Пример #1
0
 public Package(int id, string packageName, int?maxMinute, double?fixedPrice, double?discountPercentage, int?favouriteNumbers, SelectedNumbers selectedNumbers, bool mostCalledNumber, bool insideFamilyCalls)
 {
     Id                 = id;
     PackageName        = packageName;
     MaxMinute          = maxMinute;
     FixedPrice         = fixedPrice;
     DiscountPercentage = discountPercentage;
     FavouriteNumbers   = favouriteNumbers;
     SelectedNumbers    = selectedNumbers;
     MostCalledNumber   = mostCalledNumber;
     InsideFamilyCalls  = insideFamilyCalls;
 }
Пример #2
0
 public void EditSelectedNumbers(SelectedNumbers selectedNumbers)
 {
     FirstNumber  = selectedNumbers.FirstNumber;
     SecondNumber = selectedNumbers.SecondNumber;
     ThirdNumber  = selectedNumbers.ThirdNumber;
 }
Пример #3
0
 public Package NewPackage(string packageName, int?maxMinute, double?fixedPrice, double?discountPercentage, int favouriteNumbersId, SelectedNumbers selectedNumbers, bool mostCalledNumber, bool insideFamilyCalls)
 {
     return(new Package
     {
         PackageName = packageName,
         MaxMinute = maxMinute,
         FixedPrice = fixedPrice,
         DiscountPercentage = discountPercentage,
         FavouriteNumbers = favouriteNumbersId,
         SelectedNumbers = selectedNumbers,
         MostCalledNumber = mostCalledNumber,
         InsideFamilyCalls = insideFamilyCalls
     });
 }