public override string ToString() { string strUserID = "XX"; if (UserIDLogedIn.HasValue && UserIDLogedIn.Value != Constants.ANONYMOUS_USERID.ToGuid()) { strUserID = string.Concat("X", UserIDLogedIn); } System.Text.StringBuilder sb = new System.Text.StringBuilder(string.Format("OT{0}-{1}-{2}-{3}-{4}-{5}-{6}-{7}", (int)ObjectType, strUserID, (int)SortBy, CommunityID, UserID, TagID, (int)Direction, (int)QuerySourceType)); if (SortBySecond != QuickSort.NotSorted) { sb.AppendFormat("-SS{0}_{1}", (int)SortBySecond, (int)DirectionSecond); } if (Featured != null) { sb.AppendFormat("-B{0}", Featured.Value); } if (WithCopy != null) { sb.AppendFormat("-C{0}", WithCopy.Value ? "1" : "0"); } if (ObjectStatus != null) { sb.AppendFormat("-D1{0}", (int)ObjectStatus.Value); } if (ShowState != null) { sb.AppendFormat("-D2{0}", (int)ShowState.Value); } if (FromInserted != null) { sb.AppendFormat("-E{0}", FromInserted.Value.Date.Ticks); } if (ToInserted != null) { sb.AppendFormat("-F{0}", ToInserted.Value.Date.Ticks); } if (FromStartDate != null) { sb.AppendFormat("-G1{0}", FromStartDate.Value.Date.Ticks); } if (ToStartDate != null) { sb.AppendFormat("-G2{0}", ToStartDate.Value.Date.Ticks); } if (FromEndDate != null) { sb.AppendFormat("-H1{0}", FromEndDate.Value.Date.Ticks); } if (ToEndDate != null) { sb.AppendFormat("-H2{0}", ToEndDate.Value.Date.Ticks); } if (DateQueryMethode != null) { sb.AppendFormat("-I{0}", (int)DateQueryMethode.Value); } if (!string.IsNullOrEmpty(Country)) { sb.AppendFormat("-J{0}", Country.ToLower()); } if (!string.IsNullOrEmpty(Zip)) { sb.AppendFormat("-K{0}", Zip.ToLower()); } if (!string.IsNullOrEmpty(City)) { sb.AppendFormat("-L{0}", City.ToLower()); } if (DistanceKm != null && GeoLat != null && GeoLong != null) { sb.AppendFormat("-M{0}({1}{2})", DistanceKm.Value, GeoLat.Value, GeoLong.Value); } if (!string.IsNullOrEmpty(ParentObjectID)) { sb.AppendFormat("-N{0}", ParentObjectID); } if (CheckUserRoleRight) { sb.AppendFormat("-O{0}", UserRole.ToLower()); } if (PageSize > 0 || Amount > 0) { sb.AppendFormat("-P{0}", string.Format("{0}.{1}.{2}", PageNumber, PageSize, Amount)); } if (!string.IsNullOrEmpty(Communities)) { sb.AppendFormat("-R{0}", Communities.ToLower()); } if (!string.IsNullOrEmpty(Tags1)) { sb.AppendFormat("-S1{0}", Tags1.ToLower()); } if (!string.IsNullOrEmpty(RawTags1)) { sb.AppendFormat("-SR1{0}", RawTags1.ToLower()); } if (!string.IsNullOrEmpty(Tags2)) { sb.AppendFormat("-S2{0}", Tags2.ToLower()); } if (!string.IsNullOrEmpty(RawTags2)) { sb.AppendFormat("-SR2{0}", RawTags2.ToLower()); } if (!string.IsNullOrEmpty(Tags3)) { sb.AppendFormat("-S3{0}", Tags3.ToLower()); } if (!string.IsNullOrEmpty(RawTags3)) { sb.AppendFormat("-SR3{0}", RawTags3.ToLower()); } if (!string.IsNullOrEmpty(ObjectTypes)) { sb.AppendFormat("-T{0}", ObjectTypes.ToLower()); } if (GroupID.HasValue) { sb.AppendFormat("-X1{0}", GroupID.Value); } if (CatalogSearchType != DBCatalogSearchType.None) { sb.AppendFormat("-X2{0}", (int)CatalogSearchType); } if (DisablePaging.HasValue) { sb.AppendFormat("-X3{0}", DisablePaging.Value ? "1" : "0"); } if (CurrentObjectID.HasValue) { sb.AppendFormat("-XC4{0}", CurrentObjectID.Value); } if (ObjectID.HasValue) { sb.AppendFormat("-XO4{0}", ObjectID.Value); } if (OnlyConverted.HasValue) { sb.AppendFormat("-X5{0}", OnlyConverted.Value ? "1" : "0"); } if (OnlyWithImage.HasValue) { sb.AppendFormat("-X6{0}", OnlyWithImage.Value ? "1" : "0"); } if (IncludeGroups.HasValue) { sb.AppendFormat("-X7{0}", IncludeGroups.Value ? "1" : "0"); } if (OnlyGeoTagged.HasValue) { sb.AppendFormat("-X8{0}", OnlyGeoTagged.Value ? "1" : "0"); } if (!string.IsNullOrEmpty(nickname)) { sb.AppendFormat("-X9{0}", nickname.ToLower()); } if (!string.IsNullOrEmpty(title)) { sb.AppendFormat("-X10{0}", title.ToLower()); } if (!string.IsNullOrEmpty(description)) { sb.AppendFormat("-X11{0}", description.ToLower()); } if (!string.IsNullOrEmpty(userSearch)) { sb.AppendFormat("-X12{0}", userSearch.ToLower()); } if (!string.IsNullOrEmpty(generalSearch)) { sb.AppendFormat("-X13{0}", generalSearch.ToLower()); } if (!string.IsNullOrEmpty(oTypes)) { sb.AppendFormat("-X14{0}", oTypes.ToLower()); } if (!string.IsNullOrEmpty(cties)) { sb.AppendFormat("-X15{0}", cties.ToLower()); } if (!string.IsNullOrEmpty(titleLeftChar)) { sb.AppendFormat("-X16{0}", titleLeftChar.ToLower()); } if (!string.IsNullOrEmpty(excludeObjectIds)) { sb.AppendFormat("-X17{0}", excludeObjectIds); } if (RelationParams != null) { sb.AppendFormat("-RP{0}", RelationParams.ToString()); } if (MembershipParams != null) { sb.AppendFormat("-MP{0}", MembershipParams.ToString()); } if (ViewLogParams != null) { sb.AppendFormat("-LP{0}", ViewLogParams.ToString()); } //public ViewLogParams ViewLogParams { get; set; } return(sb.ToString()); }