示例#1
0
        public ServiceConfigurationEntry GetConfiguration(Data.Country country, Data.MobileOperator mobileOperator)
        {
            ServiceConfigurationEntry sce = null;

            if (mobileOperator == null)
            {
                if (this._countryConfigurationEntryMap.ContainsKey(country.ID))
                {
                    return(this._countryConfigurationEntryMap[country.ID]);
                }

                sce = ServiceConfigurationEntry.CreateManager().Load(this._serviceData, country);
                if (sce != null)
                {
                    this._countryConfigurationEntryMap.Add(country.ID, sce);
                }

                return(sce);
            }
            else
            {
                return(ServiceConfigurationEntry.CreateManager().Load(this._serviceData, country, mobileOperator));
            }
        }
示例#2
0
 public UserSession(int id, Guid guid, UserSessionType userSessionType, Service service, Application application, Domain domain, User user, Country country, Language language, MobileOperator mobileOperator, int?trackingID, string iPAddress, string userAgent, string entranceUrl, string refferer, bool hasVerifiedAge, DateTime validUntil, DateTime updated, DateTime created) : base(id, updated, created, false)
 {
     this._guid            = guid;
     this._userSessionType = userSessionType;
     this._service         = service;
     this._application     = application;
     this._domain          = domain;
     this._user            = user;
     this._country         = country;
     this._language        = language;
     this._mobileOperator  = mobileOperator;
     this._trackingID      = trackingID;
     this._iPAddress       = iPAddress;
     this._userAgent       = userAgent;
     this._entranceUrl     = entranceUrl;
     this._refferer        = refferer;
     this._hasVerifiedAge  = hasVerifiedAge;
     this._validUntil      = validUntil;
 }
示例#3
0
 public ServiceConfigurationEntry GetConfiguration(Data.Country country)
 {
     return(this.GetConfiguration(country, null));
 }