Esempio n. 1
0
        public Card ToCard()
        {
            var card = new Card();

            card.Active             = Active;
            card.ClassOfServiceId   = ClassOfServiceId;
            card.BlockReason        = BlockReason;
            card.Description        = Description;
            card.StartDate          = StartDate;
            card.DueDate            = DueDate;
            card.ExternalCardID     = ExternalCardID;
            card.ExternalSystemName = ExternalSystemName;
            card.ExternalSystemUrl  = ExternalSystemUrl;
            card.Id              = Id;
            card.Index           = Index;
            card.IsBlocked       = IsBlocked;
            card.LaneId          = LaneId;
            card.Priority        = (int)Priority;
            card.Size            = Size;
            card.Tags            = Tags;
            card.Title           = Title;
            card.TypeId          = TypeId;
            card.Version         = Version;
            card.AssignedUserIds = (AssignedUsers != null) ? AssignedUsers.Select(x => x.AssignedUserId).ToArray() : null;
            card.Comments        = Comments;
            card.HistoryEvents   = HistoryEvents;
            card.HistoryEvents   = HistoryEvents;
            card.LastMove        = LastMove;
            card.LastActivity    = LastActivity;
            card.LastComment     = LastComment;
            card.DateArchived    = DateArchived;
            return(card);
        }
Esempio n. 2
0
        public Card ToCard()
        {
            var card = new Card();

            card.Active               = Active;
            card.ClassOfServiceId     = ClassOfServiceId;
            card.BlockReason          = BlockReason;
            card.Description          = Description;
            card.StartDate            = StartDate;
            card.DueDate              = DueDate;
            card.ExternalCardID       = ExternalCardID;
            card.ExternalSystemName   = ExternalSystemName;
            card.ExternalSystemUrl    = ExternalSystemUrl;
            card.ExternalCardIdPrefix = ExternalCardIdPrefix;
            card.Id                               = Id;
            card.Index                            = Index;
            card.IsBlocked                        = IsBlocked;
            card.LaneId                           = LaneId;
            card.Priority                         = (int)Priority;
            card.Size                             = Size;
            card.Tags                             = Tags;
            card.Title                            = Title;
            card.TypeId                           = TypeId;
            card.Version                          = Version;
            card.AssignedUserIds                  = (AssignedUsers != null) ? (AssignedUserIds != null) ? AssignedUserIds : AssignedUsers.Select(x => x.Id.Value).ToArray() : null;
            card.Comments                         = Comments;
            card.HistoryEvents                    = HistoryEvents;
            card.LastMove                         = LastMove;
            card.LastActivity                     = LastActivity;
            card.LastComment                      = LastComment;
            card.DateArchived                     = DateArchived;
            card.ParentCardId                     = ParentCardId;
            card.ParentBoardId                    = ParentBoardId;
            card.ActualFinishDate                 = ActualFinishDate;
            card.ActualStartDate                  = ActualStartDate;
            card.AssignedUserName                 = AssignedUserName;
            card.BlockStateChangeDate             = BlockStateChangeDate;
            card.BoardId                          = BoardId;
            card.BoardTitle                       = BoardTitle;
            card.CardContexts                     = CardContexts;
            card.CardTypeIconColor                = CardTypeIconColor;
            card.CardTypeIconName                 = CardTypeIconName;
            card.ClassOfServiceCustomIconColor    = ClassOfServiceCustomIconColor;
            card.ClassOfServiceCustomIconName     = ClassOfServiceCustomIconName;
            card.CreateDate                       = CreateDate;
            card.CurrentContext                   = CurrentContext;
            card.CurrentTaskBoardId               = CurrentTaskBoardId;
            card.DrillThroughCompletionPercent    = DrillThroughCompletionPercent;
            card.DrillThroughProgressTotal        = DrillThroughProgressTotal;
            card.DrillThroughProgressComplete     = DrillThroughProgressComplete;
            card.DrillThroughProgressSizeComplete = DrillThroughProgressSizeComplete;
            card.DrillThroughProgressSizeTotal    = DrillThroughProgressSizeTotal;
            card.GravatarLink                     = GravatarLink;
            card.Icon                             = Icon;
            card.IsOlderThanXDays                 = IsOlderThanXDays;
            card.LaneTitle                        = LaneTitle;
            card.ParentTaskboardId                = ParentTaskboardId;
            card.SmallGravatarLink                = SmallGravatarLink;
            card.TaskBoardCompletionPercent       = TaskBoardCompletionPercent;
            card.TaskBoardCompletedCardCount      = TaskBoardCompletedCardCount;
            card.TaskBoardCompletedCardSize       = TaskBoardCompletedCardSize;
            card.TaskBoardTotalCards              = TaskBoardTotalCards;
            card.TaskBoardTotalSize               = TaskBoardTotalSize;

            return(card);
        }