Esempio n. 1
0
        public jUser LookUp(ulong userID)
        {
            List <jChannel> channels = this.Channels.Where(item => item.Users.Exists(u => u.Id == userID)).ToList();
            jUser           U        = null;

            for (int i = 0; i < channels.Count; i++)
            {
                if (U == null)
                {
                    U = channels[i].Lookup(userID);
                }
                else
                {
                    jUser temp = channels[i].Lookup(userID);
                    U.Timestamps.AddRange(temp.Timestamps);
                }
            }
            return(U);
        }
Esempio n. 2
0
 public static string ToJson(this jUser self) => JsonConvert.SerializeObject(self, MsgCountPlusNET.json.jUser_Converter.Settings);