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); }
public static string GetValue(ETrackerType type) { if (type == ETrackerType.Site) { return("Site"); } else if (type == ETrackerType.Page) { return("Page"); } else { throw new Exception(); } }
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; }
public static bool Equals(string typeStr, ETrackerType type) { return(Equals(type, typeStr)); }