Esempio n. 1
0
 public static bool Equals(ETrackerType type, string typeStr)
 {
     if (string.IsNullOrEmpty(typeStr))
     {
         return(false);
     }
     if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower()))
     {
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public static string GetValue(ETrackerType type)
 {
     if (type == ETrackerType.Site)
     {
         return("Site");
     }
     else if (type == ETrackerType.Page)
     {
         return("Page");
     }
     else
     {
         throw new Exception();
     }
 }
Esempio n. 3
0
 public TrackingInfo(int trackingId, int publishmentSystemId, ETrackerType trackerType, DateTime lastAccessDateTime, string pageUrl, int pageNodeId, int pageContentId, string referrer, string ipAddress, string operatingSystem, string browser, DateTime accessDateTime)
 {
     TrackingId          = trackingId;
     PublishmentSystemId = publishmentSystemId;
     TrackerType         = trackerType;
     LastAccessDateTime  = lastAccessDateTime;
     PageUrl             = pageUrl;
     PageNodeId          = pageNodeId;
     PageContentId       = pageContentId;
     Referrer            = referrer;
     IpAddress           = ipAddress;
     OperatingSystem     = operatingSystem;
     Browser             = browser;
     AccessDateTime      = accessDateTime;
 }
Esempio n. 4
0
 public static bool Equals(string typeStr, ETrackerType type)
 {
     return(Equals(type, typeStr));
 }