Biz.Managers.UnitContentResourceDownloadManager.BuildDownloadResource C# (CSharp) Method

BuildDownloadResource() private method

private BuildDownloadResource ( ) : void
return void
        private void BuildDownloadResource()
        {
            this.savePath = this.constants.LocalContentPath + @"{0}_{1}" + @"\" + this.constants.CultureCode + @"\Unit_" + this.Unit.Id + ".json";

            switch (this.constants.ContentGenerateBy)
            {
                case LevelType.Level:
                    // activity, step, lesson, unit, level.
                    this.baseModelId = this.Unit.ParentModule.Id;
                    this.savePath = string.Format(savePath, "level", this.baseModelId);
                    break;
            }

            // Add download path to
            MapfileItem f = new MapfileItem();
            f.FileName = this.savePath;
            // TODO:: To get SHA like value.
            f.SHA = "2";
            ResourceList.Add(f);
        }