private string CompileTagString()
        {
            string tags = string.Empty;

            Characters.ForEach(x => tags += tags_base + x);
            Fandoms.ForEach(x => tags    += tags_base + x); // all three take each item and add it to the tags string with tags_base before it
            OtherTags.ForEach(x => tags  += tags_base + x);
            tags.Trim();
            return(tags);
        }
Пример #2
0
        public bool[] BuildUsedRequestArray()
        {
            // Set anything false that is not used. This will be used when guilding the query string.
            bool[] used = new bool[18] {
                true, true, true, true, true,
                true, true, true, true, true, true, true, true, true,
                true, true, true, true
            };

            if (Basic is null || Basic.Equals(""))
            {
                used[0] = false;
            }
            if (Title is null || Title.Equals(""))
            {
                used[1] = false;
            }
            if (Authors is null || Authors.Equals(""))
            {
                used[2] = false;
            }
            if (Characters is null || Characters.Equals(""))
            {
                used[3] = false;
            }
            if (Relationships is null || Relationships.Equals(""))
            {
                used[4] = false;
            }
            if (Fandoms is null || Fandoms.Equals(""))
            {
                used[5] = false;
            }
            if (OtherTags is null || OtherTags.Equals(""))
            {
                used[6] = false;
            }

            if (Likes.Item1 == 0 && Likes.Item2 == 0)
            {
                used[7] = false;
            }
            if (Views.Item1 == 0 && Views.Item2 == 0)
            {
                used[8] = false;
            }
            if (Comments.Item1 == 0 && Comments.Item2 == 0)
            {
                used[9] = false;
            }
            if (WordCount.Item1 == 0 && WordCount.Item2 == 0)
            {
                used[10] = false;
            }

            if (UpdateBefore.Item1 == default || UpdateBefore.Item2 == default)
            {
                used[11] = false;
            }
            if (PublishBefore.Item1 == default || PublishBefore.Item2 == default)
            {
                used[12] = false;
            }

            if (Direction == 0)
            {
                used[13] = false;
            }
            if (SearchFicsBy == 0)
            {
                used[14] = false;
            }
            if (FicRaiting == 0)
            {
                used[15] = false;
            }
            if (Status == 0)
            {
                used[16] = false;
            }
            if (Crossover == 0)
            {
                used[17] = false;
            }

            return(used);
        }