Epiworx.Business.Story.Fetch C# (CSharp) Method

Fetch() protected method

protected Fetch ( StoryData data ) : void
data StoryData
return void
        protected void Fetch(StoryData data)
        {
            this.StoryId = data.StoryId;
            this.AssignedTo = data.AssignedTo;
            this.AssignedToEmail = data.AssignedToUser.Email;
            this.AssignedToName = data.AssignedToUser.Name;
            this.AssignedDate = data.AssignedDate;
            this.CompletedDate = data.CompletedDate;
            this.Description = data.Description;
            this.Duration = data.Duration;
            this.EstimatedCompletedDate = data.EstimatedCompletedDate;
            this.EstimatedDuration = data.EstimatedDuration;
            this.IsArchived = data.IsArchived;
            this.IsCompleted = data.IsCompleted;
            this.IsOpened = data.IsOpened;
            this.ProjectId = data.ProjectId;
            this.ProjectName = data.Project.Name;
            this.SprintId = data.SprintId;
            this.SprintName = data.Sprint.Name;
            this.StartDate = data.StartDate;
            this.StatusId = data.StatusId;
            this.StatusName = data.Status.Name;
            this.ModifiedBy = data.ModifiedBy;
            this.ModifiedByName = data.ModifiedByUser.Name;
            this.ModifiedDate = data.ModifiedDate;
            this.CreatedBy = data.CreatedBy;
            this.CreatedByName = data.CreatedByUser.Name;
            this.CreatedDate = data.CreatedDate;
        }

Usage Example

Example #1
0
        internal static Story FetchStory(StoryData data)
        {
            var result = new Story();

            result.Fetch(data);
            result.MarkOld();

            return result;
        }
All Usage Examples Of Epiworx.Business.Story::Fetch