Ejemplo n.º 1
0
 public LogEvent(Guid userID, CFLogEventType eventType, string name)
 {
     this.EventDateTime = DateTime.Now;
     this.UserID        = userID;
     this.EventType     = (int)eventType;
     this.Name          = name;
 }
Ejemplo n.º 2
0
        public static void SendAppEventEmail(CFLogEventType eventName, string eventDescription, string usersEmail, Guid userID, string receiverEmail)
        {
            string subject = string.Format("[CFEvent] {0} {1}", eventName, DateTime.Now);
            string body    = string.Format("User: <a href='http://cf3.climbfind.com/climber-profile/{2}'>{0}</a><br /><br />{1}", usersEmail, eventDescription, userID);

            SMTP.SendAppEvent(subject, body, receiverEmail);
        }
Ejemplo n.º 3
0
        public List <LogEvent> Get(Guid userID, CFLogEventType eventType)
        {
            int eventTypeID = (int)eventType;
            var query       = default(IQueryable <LinqToSql_LogEvent>);

            if (userID == Guid.Empty && eventType == CFLogEventType.All)
            {
                return(GetAll());
            }
            else if (userID != Guid.Empty && eventType != CFLogEventType.All)
            {
                query = from c in EntityTable
                        where
                        c.EventType == eventTypeID &&
                        c.UserID == userID
                        select c;
            }
            else if (eventType == CFLogEventType.All)
            {
                query = from c in EntityTable
                        where c.UserID == userID
                        select c;
            }
            else
            {
                query = from c in EntityTable
                        where c.EventType == eventTypeID
                        select c;
            }

            return(MapList(query.ToList()));
        }
Ejemplo n.º 4
0
 public LogEvent(int ID, Guid userID, CFLogEventType eventType, string name,
                 DateTime eventDateTime)
 {
     this.ID            = ID;
     this.EventDateTime = eventDateTime;
     this.UserID        = userID;
     this.EventType     = (int)eventType;
     this.Name          = name;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 
 /// </summary>
 public static List<LogEvent> Get(Guid userID, CFLogEventType eventType)
 {
     return da.Get(userID, eventType);
 }
Ejemplo n.º 6
0
 public static void SendAppEventEmail(CFLogEventType eventName, string eventDescription, string usersEmail, Guid userID, string receiverEmail)
 {
     string subject = string.Format("[CFEvent] {0} {1}", eventName, DateTime.Now);
     string body = string.Format("User: <a href='http://cf3.climbfind.com/climber-profile/{2}'>{0}</a><br /><br />{1}", usersEmail, eventDescription, userID);
     SMTP.SendAppEvent(subject, body, receiverEmail);
 }
Ejemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 public static List <LogEvent> Get(Guid userID, CFLogEventType eventType)
 {
     return(da.Get(userID, eventType));
 }