public UserList (XMLHelper xmlhelper) : base (xmlhelper) { List = new List<User> (); var getUsers = from x in xmlhelper.xml.Elements ("user") select new User (Convert.ToInt64 (x.Element ("userid").Value), ((TextLists.TextCategory)Convert.ToByte (x.Element ("category").Value)), x.Element ("name").Value); foreach (User u in getUsers) { List.Add (u); } }
public TweetList (XMLHelper xmlhelper) : base (xmlhelper) { List = new List<string> (); var getTweets = from x in xmlhelper.xml.Elements ("tweetid") select x.Value; foreach (String s in getTweets) { List.Add (s); } }
public TextLists (XMLHelper xmlhelper) : base (xmlhelper) { Hate = GetTexts (TextCategory.hate); Neutral = GetTexts (TextCategory.neutral); Nice = GetTexts (TextCategory.nice); random = new Random (); }
public ListHelper (XMLHelper xmlhelper) { this.xmlhelper = xmlhelper; }