Пример #1
0
        public ValuesPerUser(RacLib.RacMsg msgs, Article a, ArticleAction.ActionType at, double val, Profile prf)
        {
            Id          = "";
            Name        = "";
            Bicoin      = "";
            Month       = "";
            Description = "";
            Values      = new List <VideoValue>();

            Id     = prf.user.id;
            Name   = prf.user.name;
            Bicoin = prf.bitcoin;
            Month  = msgs.ShowDate(a.released);

            VideoValue vv = new VideoValue(msgs, a, at, val);

            Values.Add(vv);

            Total = 0;
        }
Пример #2
0
        public ValuesPerUser(RacLib.RacMsg msgs, ArticleAction aa)
        {
            Id          = "";
            Name        = "";
            Bicoin      = "";
            Month       = "";
            Description = "";
            Values      = new List <VideoValue>();

            if (aa != null)
            {
                Id     = aa.userId;
                Name   = aa.userName;
                Bicoin = aa.profile.bitcoin;
                Month  = msgs.ShowDate(aa.date);

                VideoValue vv = new VideoValue(msgs, aa);
                Values.Add(vv);
            }

            Total = 0;
        }