コード例 #1
0
 public static BaseApplicationInfo Create(Application application)
 {
     return(new BaseApplicationInfo
     {
         ShortApplicationInfo = ShortApplicationInfo.Create(application),
         ApplicationAccessInfo = ApplicationAccessInfo.Create(application),
         ApplicationPrices = ApplicationPricesInfo.Create(application),
         DeveloperId = application.DeveloperRef,
         Categories = application.Categories.Select(x => x.CategoryRef).ToList(),
         PicturesId = application.Pictures.Select(x => x.Id).ToList(),
         GradeLevels = application.GradeLevels.Select(x => x.GradeLevel).ToList(),
         PermissionIds = application.Permissions.Select(x => x.Permission).ToList(),
         StandardsIds = application.ApplicationStandards.Select(x => x.StandardRef).ToList()
     });
 }
コード例 #2
0
 public static BaseApplicationInfo Create(ShortApplicationInfo shortApplicationInfo, Guid developerId
                                          , IList <AppPermissionType> permissionIds     = null, IList <Guid> picturesId = null
                                          , ApplicationPricesInfo applicationPricesInfo = null, IList <Guid> categories = null
                                          , ApplicationAccessInfo applicationAccess     = null, IList <int> gradeLevels = null, IList <Guid> standardsIds = null)
 {
     return(new BaseApplicationInfo
     {
         ShortApplicationInfo = shortApplicationInfo ?? new ShortApplicationInfo(),
         ApplicationPrices = applicationPricesInfo ?? new ApplicationPricesInfo(),
         Categories = categories,
         PicturesId = picturesId,
         ApplicationAccessInfo = applicationAccess ?? new ApplicationAccessInfo(),
         GradeLevels = gradeLevels,
         DeveloperId = developerId,
         PermissionIds = permissionIds ?? new List <AppPermissionType>(),
         StandardsIds = standardsIds ?? new List <Guid>()
     });
 }
コード例 #3
0
 protected BaseApplicationInfo()
 {
     ShortApplicationInfo  = new ShortApplicationInfo();
     ApplicationAccessInfo = new ApplicationAccessInfo();
     ApplicationPrices     = new ApplicationPricesInfo();
 }