22 lines
568 B
C#
22 lines
568 B
C#
using System.Collections.Generic;
|
|
|
|
using Activizr.Basic.Types;
|
|
|
|
namespace Activizr.Logic.Pirates
|
|
{
|
|
public class VolunteerRoles : List<VolunteerRole>
|
|
{
|
|
public static VolunteerRoles FromArray (BasicVolunteerRole[] basicArray)
|
|
{
|
|
var result = new VolunteerRoles();
|
|
|
|
result.Capacity = basicArray.Length*11/10;
|
|
foreach (BasicVolunteerRole basic in basicArray)
|
|
{
|
|
result.Add(VolunteerRole.FromBasic(basic));
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
} |