Exemple #1
0
        public VideoRequestDetailsForTalentVM(VideoRequest model)
            : base(model)
        {
            if (model == null)
            {
                return;
            }

            //video = new AttachmentDetailsVM(model.Video);
            video = AttachmentDetailsVM.ToVM(model.Video);
        }
Exemple #2
0
        public VideoDetailsVM(VideoRequest model)
        {
            if (model == null)
            {
                return;
            }

            request_id = model.ID;
            //video = new AttachmentDetailsVM(model.Video);
            video  = AttachmentDetailsVM.ToVM(model.Video);
            to     = model.To;
            from   = model.From;
            talent = new TalentShortInfoForVideoPageVM(model.Talent);
        }
Exemple #3
0
        public PersonShortInfoVM(Person model)
        {
            if (model == null)
            {
                return;
            }

            this.id        = model.ID;
            this.full_name = model.FullName;
            //this.FirstName = model.FirstName;
            //this.LastName = model.LastName;
            this.username = model.User?.UserName;
            this.bio      = model.Bio;
            //this.avatar = new AttachmentDetailsVM(model.Avatar);
            this.avatar = AttachmentDetailsVM.ToVM(model.Avatar);
        }
Exemple #4
0
        public PersonEditVM(Person model)
        {
            if (model == null)
            {
                return;
            }

            this.id        = model.ID;
            this.full_name = model.FullName;
            //this.FirstName = model.FirstName;
            //this.LastName = model.LastName;
            this.bio = model.Bio;
            //this.SocialAreaID = model.SocialAreaID;
            //this.SocialAreaHandle = model.SocialAreaHandle;
            //this.avatar = new AttachmentDetailsVM(model.Avatar);
            this.avatar = AttachmentDetailsVM.ToVM(model.Avatar);
        }
Exemple #5
0
        public TalentPersonalDataEditVM(Talent model) : base(model)
        {
            if (model == null)
            {
                return;
            }

            this.social_area_id     = model.SocialAreaID;
            this.social_area_handle = model.SocialAreaHandle;
            this.followers_count    = model.FollowersCount;
            this.intro_video        = AttachmentDetailsVM.ToVM(model.IntroVideo);

            this.is_available = model.IsAvailable;
            this.price        = model.Price;

            string numberFormat = AppData.Configuration.NumberViewStringFormat;

            this.price_str = model.Price.ToString(numberFormat).Trim();
        }
Exemple #6
0
        public TalentShortInfoVM(Talent model)
            : base(model)
        {
            if (model == null)
            {
                return;
            }

            is_available = model.IsAvailable;
            price        = model.Price;

            string numberFormat = AppData.Configuration.NumberViewStringFormat;

            price_str = model.Price.ToString(numberFormat).Trim();

            intro_video = AttachmentDetailsVM.ToVM(model.IntroVideo);

            if (model.TalentCategories != null)
            {
                categories = model.TalentCategories
                             .Select(m => new CategoryShortInfoVM(m.Category))
                             .ToList();
            }
        }