コード例 #1
0
 public static TarrifePlan getInstance(string name)
 {
     if (instance == null)
     {
         instance = new TarrifePlan(name);
     }
     return(instance);
 }
コード例 #2
0
        //отдать модель BS(Agreement, User, TariffPlan, Station)
        public AgreementStatus Sign(User user, TarrifePlan tarrifePlan, Station station)
        {
            _user = user;

            _tarrifePlan = tarrifePlan;

            _station = station;

            return(AgreementStatus.Ok);
        }
コード例 #3
0
 public Agreement(string phoneNumber, User user, TarrifePlan tarrifePlan, Station station,
                  string dogNumder, DateTime docDate, string note)
 {
     PhoneNumber  = phoneNumber;
     _user        = user;
     _tarrifePlan = tarrifePlan;
     _station     = station;
     _docNumber   = _docNumber;
     _docDate     = docDate;
     _note        = note;
 }