예제 #1
0
        public void UnSubscribeToPartnerCallsByRSS(Guid userID, int placeID)
        {
            PartnerCallSubscription subscription = pcsDA.Get(userID, placeID);

            subscription.RSS = false;
            pcsDA.Update(subscription);
            CFLogger.RecordPartnerCallUnSubscribe(userID, placeID, "UnSubscribeToPartnerCallsByRSS");
        }
예제 #2
0
        public void SubscribeToPartnerCallsByEmail(Guid userID, int placeID)
        {
            PartnerCallSubscription subscription = pcsDA.Get(userID, placeID);

            subscription.Email = true;
            pcsDA.Update(subscription);
            CFLogger.RecordPartnerCallEmailSubscription(userID, placeID, "SubscribeToPartnerCallsByEmail");
        }
 public PartnerCallSubscriptionDto(CfCacheIndexEntry p, PartnerCallSubscription s)
 {
     ID         = s.ID.ToString("N");
     PlaceID    = p.ID.ToString("N");
     Type       = (byte)p.Type;
     Country    = p.CountryID;
     Flag       = cf.Caching.AppLookups.CountryFlag(p.CountryID);
     Name       = p.Name;
     Indoor     = s.ForIndoor;
     Outdoor    = s.ForOutdoor;
     Email      = s.EmailRealTime;
     Mobile     = s.MobileRealTime;
     ExactMatch = s.ExactMatchOnly;
 }
예제 #4
0
        protected void Page_Init(Object s, EventArgs e)
        {
            if (UserLoggedIn)
            {
                subscriptions = cfController.GetPartnerCallSubscription(UserID, place.ID);

                if (subscriptions.RSS)
                {
                    SubcsribeRSSMV.SetActiveView(VIEWSubscribedToRSS);
                }
                if (subscriptions.Email)
                {
                    SubcsribeEmailMV.SetActiveView(VIEWSubscribedToEmail);
                }
            }
        }