Ejemplo n.º 1
0
        public static Card ToCard(this WebCard card)
        {
            if (card == null)
            {
                return(null);
            }

            return(Card.Retrieve(card.IdCard));
        }
Ejemplo n.º 2
0
        public TVCardViewModel(WebCard card)
        {
            CardId = card.Id;
            Name   = card.Name;

            IsActive    = false;
            State       = FormStrings.StateIdle;
            GrabbingEPG = false;
            Scrambled   = false;
            ChannelId   = 0;
        }
Ejemplo n.º 3
0
        public TVCardViewModel(WebCard card, WebVirtualCard activeCard)
            : this(card)
        {
            IsActive    = true;
            VirtualCard = activeCard;

            GrabbingEPG = activeCard.IsGrabbingEpg;
            Scrambled   = activeCard.IsScrambled;
            Username    = activeCard.User.Name;
            ChannelId   = activeCard.ChannelId;

            if (activeCard.IsTimeShifting)
            {
                State = FormStrings.StateTimeshifting;
            }
            if (activeCard.IsRecording)
            {
                State = FormStrings.StateRecording;
            }
            if (activeCard.IsScanning)
            {
                State = FormStrings.StateScanning;
            }
        }