예제 #1
0
 public GroupTypeInfo CreateGroupType(
     string name, RichTextInfo desc, Identifier ownerId,
     bool autoEnroll, bool randomEnroll, int numEnroll, GroupEnrollmentStyle enrollStyle)
 {
     CreateGroupTypeRequest request = new CreateGroupTypeRequest() {
         Name = name,
         Description = desc,
         OwnerOrgUnitId = ownerId,
         IsAutoEnroll = autoEnroll,
         RandomizeEnrollments = randomEnroll,
         EnrollmentQuantity = numEnroll,
         EnrollmentStyle = enrollStyle
     };
     CreateGroupTypeResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateGroupTypeRequest, CreateGroupTypeResponse>(
         m_service1_0, request, ( s, q ) => s.CreateGroupType( q ) );
     return response.GroupType;
 }
예제 #2
0
 public SectionInfo CreateSection(
     string name, string code, RichTextInfo description, Identifier courseOfferingId)
 {
     CreateSectionRequest request = new CreateSectionRequest() {
         Name = name,
         Code = code,
         Description = description,
         CourseOfferingId = courseOfferingId
     };
     CreateSectionResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateSectionRequest, CreateSectionResponse>(
         m_service1_0, request, ( s, q ) => s.CreateSection( q ) );
     return response.Section;
 }
예제 #3
0
 public GroupInfo CreateGroup(
     string name, string code, RichTextInfo desc, Identifier grpTypeId, Identifier ownerId)
 {
     CreateGroupRequest request = new CreateGroupRequest() {
         Name = name,
         Code = code,
         Description = desc,
         GroupTypeId = grpTypeId,
         OwnerOrgUnitId = ownerId
     };
     CreateGroupResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, CreateGroupRequest, CreateGroupResponse>(
         m_service1_0, request, ( s, q ) => s.CreateGroup( q ) );
     return response.Group;
 }